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 }
}

Package Sidebar

Install

npm i microargs

Weekly Downloads

4,679

Version

1.1.2

License

MIT

Unpacked Size

179 kB

Total Files

8

Last publish

Collaborators

  • pawelgalazka