</>PackageGraphPackageGraph

xml-name-validator

npmv5.0.0

Validates whether a string matches the production for an XML name or qualified name

Adopt with care

xml-name-validator is usable, with caveats. Last published 1033 days ago.

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

    No download data reported for this package yet.

  • DMaintenance: grade D, Poor — a real concern.

    Last published 1033 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 13 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 6 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    Apache-2.0 — 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-name-validator 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.

13 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 >=18
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the xml-name-validator README.

"use strict":
const xnv = require("xml-name-validator");

// Will return true
xnv.name("x");
xnv.name(":");
xnv.name("a:0");
xnv.name("a:b:c");

// Will return false
xnv.name("\\");
xnv.name("'");
xnv.name("0");
xnv.name("a!");
Example truncated — see the full README.

xml-name-validator 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-name-validatorthis page02Apache-2.02 years ago
xml-naming02MIT19 hours ago
dom-serializer94.3M2MIT1 day ago
cheerio24.1M5MIT1 day ago
plist14M2MIT1 day ago
fast-xml-parser04MIT1 day ago

Dependencies

Declared by xml-name-validator v5.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

@domenic/eslint-config ^3.0.0benchmark ^2.1.4eslint ^8.53.0

Used by

Popular packages that depend on xml-name-validator.

Relationship graph

Dependencies (left) and dependents (right) of xml-name-validator.

jsdomw3c-xmlserializerxml-name-validator
xml-name-validator dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 971 days apart.

Recent versions of xml-name-validator
VersionPublishedSizeLicense
5.0.0latest2 years ago13 KBApache-2.0
4.0.05 years ago13 KBApache-2.0
3.0.09 years agoApache-2.0
2.0.111 years agoWTFPL
1.0.011 years agoWTFPL

Overview

xml-name-validator is an npm package that validates whether a string matches the production for an XML name or qualified name. It has 2 known dependents in the graph. The latest version is 5.0.0, released under the Apache-2.0 license.

Who should use it

Teams working in the npm ecosystem who need validates whether a string matches the production for an XML name or qualified name and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (Apache-2.0).
  • Lean dependency tree (3 direct dependencies).

Cons

  • No bundled TypeScript types (may require a separate @types package).

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

Maintainers

Keywords

Frequently asked questions

Should I use xml-name-validator?

xml-name-validator is usable, with caveats. Last published 1033 days ago.

How do I install xml-name-validator?

Run `npm install xml-name-validator` to add xml-name-validator to your npm project.

What license is xml-name-validator released under?

xml-name-validator is distributed under the Apache-2.0 license.

How popular is xml-name-validator?

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

Is xml-name-validator still maintained?

The most recent release of xml-name-validator (v5.0.0) was published 2 years ago.

Does xml-name-validator run install scripts?

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