parse-arguments-js

1.0.2 • Public • Published

parseArguments

parse arguments

example

var argv = require('parse-arguments')(process.argv.slice(2));
console.log(argv);
$ node example-script.js ignoreInstall skipInputs -build prod --gh=46 --ph -ou=99 -gu
{
    ignoreInstall: true,
    skipInputs: true,
    build: 'prod',
    gh: '46',
    ph: true,
    ou: '99',
    gu: undefined
}

license

MIT

/parse-arguments-js/

    Package Sidebar

    Install

    npm i parse-arguments-js

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    5.02 kB

    Total Files

    6

    Last publish

    Collaborators

    • pavanreddy61