</>PackageGraphPackageGraph

npm-package-arg

npmv14.0.0

Parse the things that can be arguments to `npm install`

Safe to adopt

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

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

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 117 days ago. 7 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Pulls in 5 transitive packages, about 169 KB installed (at least — some of the tree is still being crawled).

  • ASupply chain: grade A, Excellent.

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

  • ALicense: grade A, Excellent.

    ISC — 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 npm-package-arg to a project.

4
Direct dependencies

Runtime packages this one declares itself.

5
Total installed

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

169 KB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

ISC

Every license you inherit by installing npm-package-arg, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node ^22.22.2 || ^24.15.0 || >=26.0.0
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the npm-package-arg README.

javascriptFull README ↗
const assert = require("assert")
const npa = require("npm-package-arg")

// Pass in the descriptor, and it'll return an object
try {
  const parsed = npa("@bar/foo@1.2")
} catch (ex) {
  …
}

Dependencies

Declared by npm-package-arg v14.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

@npmcli/eslint-config ^6.0.0@npmcli/template-oss 5.1.0tap ^16.0.1

Used by

Popular packages that depend on npm-package-arg.

Relationship graph

Dependencies (left) and dependents (right) of npm-package-arg.

Frequently installed together

Release history

6 releases in the last two years, typically about 74 days apart.

Recent versions of npm-package-arg
VersionPublishedSizeLicense
14.0.0latest3 months ago21 KBISC
13.0.210 months ago21 KBISC
13.0.111 months ago21 KBISC
13.0.01 year ago21 KBISC
12.0.21 year ago21 KBISC
12.0.11 year ago19 KBISC
12.0.01 year ago19 KBISC
11.0.32 years ago19 KBISC
11.0.22 years ago19 KBISC
11.0.13 years ago19 KBISC
11.0.03 years ago19 KBISC
10.1.03 years ago19 KBISC
10.0.03 years ago18 KBISC
9.1.24 years ago18 KBISC
9.1.14 years ago18 KBISC

Overview

npm-package-arg is an npm package that parse the things that can be arguments to `npm install`. It has 2 known dependents in the graph. The latest version is 14.0.0, released under the ISC license.

Who should use it

Teams working in the npm ecosystem who need parse the things that can be arguments to `npm install` 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 (ISC).

Cons

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

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

Maintainers

Frequently asked questions

Should I use npm-package-arg?

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

How do I install npm-package-arg?

Run `npm install npm-package-arg` to add npm-package-arg to your npm project.

How many dependencies does npm-package-arg have?

npm-package-arg declares 7 direct dependencies and pulls in 5 packages in total once its runtime tree is resolved totalling about 169 KB on disk.

What license is npm-package-arg released under?

npm-package-arg is distributed under the ISC license.

How popular is npm-package-arg?

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

Is npm-package-arg still maintained?

The most recent release of npm-package-arg (v14.0.0) was published 3 months ago.

Does npm-package-arg run install scripts?

No. npm-package-arg does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.