Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 552 Bytes

README.md

File metadata and controls

35 lines (27 loc) · 552 Bytes

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