@dkh-dev/argv

2.3.1 • Public • Published

@dkh-dev/parse-argv

Node.js process.argv parsed

Installation

$ yarn install @dkh-dev/argv

Examples

argv.ts

import argv from '@dkh-dev/argv'

console.log(argv);

// $ node test parse --a=b -b -c d e --e --f="g h" -i=123 -j=/k l/ -k false
/* => {
        '0': 'parse',
        '1': 'e',
        '2': 'l/',
        a: 'b',
        b: true,
        c: 'd',
        e: true,
        f: 'g h',
        i: 123,
        j: '/k',
        k: false
      }
*/

Dependencies (1)

Dev Dependencies (2)

Package Sidebar

Install

npm i @dkh-dev/argv

Weekly Downloads

1

Version

2.3.1

License

ISC

Unpacked Size

2.32 kB

Total Files

5

Last publish

Collaborators

  • dkh-dev