This package has been deprecated

Author message:

This project has been renamed to @pawelgalazka/cli-args. Install using @pawelgalazka/cli-args instead

microargs
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

microargs node version Build Status npm version

CLI arguments micro parser. Only 38 lines of code, no dependencies.

#!/usr/bin/env node
const args = require('microargs')(process.argv.slice(2));
console.dir(args);
$ script.js -a --foo=bar --boo abc def
{
    params: ['abc', 'def'],
    options: { a: true, foo: 'bar', boo: true }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    6
  • 1.1.0
    5,221
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i microargs

Weekly Downloads

16,068

Version

1.1.2

License

MIT

Unpacked Size

179 kB

Total Files

8

Last publish

Collaborators

  • pawelgalazka