npm-package-arg
npmv14.0.0Parse 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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
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.
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)
Used by
Popular packages that depend on npm-package-arg.
Relationship graph
Dependencies (left) and dependents (right) of npm-package-arg.
Frequently installed together
The Expo SDK
Expo Router is a file-based router for React Native and web applications.
Elegant terminal spinner
A module for reading, writing, and manipulating JSON files
A Promise-based interface into processes created by child_process.spawn
TypeScript-first schema declaration and validation library with static type inference
Better streaming static file server with Range and conditional-GET support
Create clickable links in the terminal
A library for interacting with the app.json
Best-effort discovery of the machine's default gateway and local network IP exclusively with UDP sockets.
Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
TypeScript definitions for ws
Release history
6 releases in the last two years, typically about 74 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 14.0.0latest | 3 months ago | 21 KB | ISC |
| 13.0.2 | 10 months ago | 21 KB | ISC |
| 13.0.1 | 11 months ago | 21 KB | ISC |
| 13.0.0 | 1 year ago | 21 KB | ISC |
| 12.0.2 | 1 year ago | 21 KB | ISC |
| 12.0.1 | 1 year ago | 19 KB | ISC |
| 12.0.0 | 1 year ago | 19 KB | ISC |
| 11.0.3 | 2 years ago | 19 KB | ISC |
| 11.0.2 | 2 years ago | 19 KB | ISC |
| 11.0.1 | 3 years ago | 19 KB | ISC |
| 11.0.0 | 3 years ago | 19 KB | ISC |
| 10.1.0 | 3 years ago | 19 KB | ISC |
| 10.0.0 | 3 years ago | 18 KB | ISC |
| 9.1.2 | 4 years ago | 18 KB | ISC |
| 9.1.1 | 4 years ago | 18 KB | ISC |
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.