</>PackageGraphPackageGraph

xml-naming

npmv0.3.0TypeScript

Validates XML name productions — Name, NCName, QName, NMToken, NMTokens — for XML 1.0 and 1.1

Safe to adopt

Yes — xml-naming scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 70 days ago. 3 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 70 days ago. 3 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 31 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding xml-naming to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

31 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >=16.0.0
Module format
ESM only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the xml-naming README.

import { name, ncName, qName, nmToken, nmTokens } from 'xml-naming';

// Name — colon allowed anywhere, used for DOCTYPE entity names
name('foo')          // true
name('a:b:c')        // true  ← multiple colons fine for Name
name('1foo')         // false ← digit start invalid

// NCName — no colon, used for SVG id attributes, namespace prefixes
ncName('my-id')      // true
ncName('xlink:href') // false ← colon not allowed

// QName — exactly one colon as prefix separator, used for element/attribute names
qName('svg:circle')  // true
qName('foo')         // true  ← unprefixed QName is valid
Example truncated — see the full README.

xml-naming vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
xml-namingthis page02MIT2 months ago
@nodable/entities02MIT1 day ago
xml-name-validator02Apache-2.01 day ago
fast-xml-builder01MIT1 day ago
fast-xml-parser04MIT1 day ago
fast-glob135.1M8MIT1 day ago

Dependencies

Declared by xml-naming v0.3.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (1)

jasmine ^5.0.0

Used by

Popular packages that depend on xml-naming.

Relationship graph

Dependencies (left) and dependents (right) of xml-naming.

fast-xml-parserfast-xml-builderxml-naming
xml-naming dependencies dependents

Frequently installed together

Release history

3 releases in the last two years, typically about 54 days apart.

Recent versions of xml-naming
VersionPublishedSizeLicense
0.3.0latest2 months ago31 KBMIT
0.2.02 months ago24 KBMIT
0.1.04 months ago18 KBMIT

Overview

xml-naming is an npm package that validates XML name productions — Name, NCName, QName, NMToken, NMTokens — for XML 1.0 and 1.1. It has 2 known dependents in the graph. The latest version is 0.3.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need validates XML name productions — Name, NCName, QName, NMToken, NMTokens — for XML 1.0 and 1.1 and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).
  • Lean dependency tree (1 direct dependencies).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use xml-naming?

Yes — xml-naming scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 70 days ago. 3 releases in the last 2 years.

How do I install xml-naming?

Run `npm install xml-naming` to add xml-naming to your npm project.

What license is xml-naming released under?

xml-naming is distributed under the MIT license.

How popular is xml-naming?

npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on xml-naming.

Is xml-naming still maintained?

The most recent release of xml-naming (v0.3.0) was published 2 months ago.

Does xml-naming run install scripts?

No. xml-naming does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.