</>PackageGraphPackageGraph

dashdash

npmv2.0.0

A light, featureful and explicit option parsing library.

Not recommended for new projects

No — dashdash should not be adopted for new projects. Last published 2175 days ago.

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

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 2175 days ago.

  • AWeight: grade A, Excellent.

    Pulls in 1 transitive package, about 82 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 dashdash to a project.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

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

82 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

Every license you inherit by installing dashdash, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=10.x
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the dashdash README.

javascriptFull README ↗
var dashdash = require('dashdash');

// Specify the options. Minimally `name` (or `names`) and `type`
// must be given for each.
var options = [
    {
        // `names` or a single `name`. First element is the `opts.KEY`.
        names: ['help', 'h'],
        // See "Option specs" below for types.
        type: 'bool',
        help: 'Print this help and exit.'
    }
];
Example truncated — see the full README.

dashdash vs the alternatives

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

PackageWeekly downloadsDependentsLicenseLast release
dashdashthis page01MIT6 years ago
yargs-parser178.8M2ISC1 day ago
yargs012MIT1 day ago
commander451.1M11MIT1 day ago
meow36.7M1MIT1 day ago
has-flag166.9M1MIT1 day ago

Dependencies

Declared by dashdash v2.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (5)

eslint ^7.3.0eslint-config-prettier ^6.11.0eslint-plugin-prettier ^3.1.4prettier ^2.0.5tap ^14.x

Used by

Popular packages that depend on dashdash.

Relationship graph

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

assert-plussshpkdashdash
dashdash dependencies dependents

Frequently installed together

Release history

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

Recent versions of dashdash
VersionPublishedSizeLicense
2.0.0latest6 years ago82 KBMIT
1.14.19 years agoMIT
1.14.010 years agoMIT
1.13.110 years agoMIT
1.13.010 years agoMIT
1.12.210 years agoMIT
1.12.110 years agoMIT
1.12.010 years agoMIT
1.11.010 years agoMIT
1.10.111 years agoMIT
1.10.011 years agoMIT
1.9.011 years agoMIT
1.8.011 years agoMIT
1.7.311 years agoMIT
1.7.211 years agoMIT

Overview

dashdash is an npm package that a light, featureful and explicit option parsing library. It has 1 known dependents in the graph. The latest version is 2.0.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a light, featureful and explicit option parsing library 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 (MIT).

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 dashdash?

No — dashdash should not be adopted for new projects. Last published 2175 days ago.

How do I install dashdash?

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

How many dependencies does dashdash have?

dashdash declares 6 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 82 KB on disk.

What license is dashdash released under?

dashdash is distributed under the MIT license.

How popular is dashdash?

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

Is dashdash still maintained?

The most recent release of dashdash (v2.0.0) was published 6 years ago.

Does dashdash run install scripts?

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