</>PackageGraphPackageGraph

arg

npmv5.0.2TypeScript

Unopinionated, no-frills CLI argument parser

Not recommended for new projects

No — arg should not be adopted for new projects. Last published 1557 days ago.

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

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 1557 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 13 KB installed.

  • ASupply chain: grade A, Excellent.

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

  • 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 arg 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
No constraint declared
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the arg README.

javascriptFull README ↗
const arg = require('arg');

// `options` is an optional parameter
const args = arg(
	spec,
	(options = { permissive: false, argv: process.argv.slice(2) })
);

Dependencies

Declared by arg v5.0.2. Runtime dependencies are installed with the package; dev dependencies are not.

Used by

Popular packages that depend on arg.

Relationship graph

Dependencies (left) and dependents (right) of arg.

ts-node@expo/cli@expo/fingerprintarg
arg dependencies dependents

Frequently installed together

Release history

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

Recent versions of arg
VersionPublishedSizeLicense
5.0.2latest4 years ago13 KBMIT
5.0.15 years ago13 KBMIT
5.0.05 years ago13 KBMIT
4.1.36 years ago13 KBMIT
4.1.26 years ago12 KBMIT
4.1.17 years ago12 KBMIT
4.1.07 years ago12 KBMIT
4.0.17 years ago12 KBMIT
3.0.07 years ago8.7 KBMIT
2.0.17 years ago7.6 KBMIT
2.0.08 years ago128 KBMIT
1.0.18 years ago125 KBMIT
1.0.09 years agoMIT
0.0.114 years agoMIT

Overview

arg is an npm package that unopinionated, no-frills CLI argument parser. It has 3 known dependents in the graph. The latest version is 5.0.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need unopinionated, no-frills CLI argument parser 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 (3 direct dependencies).

Cons

  • No significant drawbacks detected from available metadata.

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

Maintainers

aaorrisaaronbrown-vercelagadzikalmonkamanhimself_anatrajkovskaandybitzarbwarian-vercelarzafranatcastlebalazs4baruchadibmealeybrethudsonbroph123casey.gowriecatsaremlgchibicodechloe.tedderchriswdmrcl3arglasscmvnkcodetaromiuracodybrouwerscodyogdencraigandrewscramforcecreationixcrowterlidaniel.campbelldbredvickdcartertwodelbadenizkusefdferber90dglsparsonsdizzyupdomecclestondomyseedoqueebb-tideecklfedgarcerecerezvejcelsighemeraldsantoendangeredmassaepallerolsernestdethan_arrowoodf3d0rfalcoagustinfeedthejimfeugygaspar09gbibeaulaviolettegdbortongeovanisouza92gielcobbengkaragkiaourisgmonacogoncygsandhugsoltisgudmundurguybedfordhankvercelhannesbornohealeycodeshousseindjirdehhungrybearstudiohuozhiiamevilrabbitigorklopovijjkismaelrumzanjanicklas-ralphjanoryjaredpalmerjasongullicksonjavierbytejavivelascojeffreyarnesonjhochjkremsjohnphamousjtaylor0196julianbenegaskakadiadarpankale-stewkayernyckdy1kellykikobeatsktcarterkuvoskwonojleerobinsonlfadeslivcarmanlostinpatternslubakravchelucleraylydiahalliemaedahbatoolmarcgreenstockmatheussmatt.strakamegbirdmglagolamitchellwrightmjakobismrmckebmsimulcikmsweeneydevnabsulnathanhammondnazarenooviedonick.traceynkzawanutanutlopenwienertokbelpadmaiapaulogdmpbtopieparkerprateekbhquietshuragojoserauchgreconbotrizbizkitsryantosambeckersamselikoffsamsislesamuel.fosterschlezsegunadebayoskllcrnsnokohnsokrasouthpolestevespanickerstephdietzsteventeystyfleswarnavasenguptathomcrowetilly3gtimertimeyoutakeittimneutkenstknickmantootallnatevercel-release-botvin-evvowilliamliwitszeit-bot

Frequently asked questions

Should I use arg?

No — arg should not be adopted for new projects. Last published 1557 days ago.

How do I install arg?

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

What license is arg released under?

arg is distributed under the MIT license.

How popular is arg?

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

Is arg still maintained?

The most recent release of arg (v5.0.2) was published 4 years ago.

Does arg run install scripts?

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