Skip to content
/ argv Public

Node.js process.argv mapped to an object argv

License

Notifications You must be signed in to change notification settings

dkh-dev/argv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published