Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@dkh-dev/argv

dkh-dev1ISC2.3.1

Node.js process.argv parsed

argv, argument, arguments, parse, parsed, nodejs, process

readme

@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
      }
*/