1.2.0 • Published 5 years ago

simple-argv-parser v1.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

simple-argv-parser is a command-line (process.argv) parser for Node.js with no dependencies!

Example of usage:

Install the package:

$ npm i simple-argv-parser

Import the package in your code. It returns an object { parsedObj } with command-line arguments parsed.

i.e. command:

$ node index.js -a b -c

Then in your code:

const { parsedObj } = require('simple-argv-parser');

console.log(parsedObj); // prints { '-a': 'b', '-c': null }

1.2.0

5 years ago

1.1.0

5 years ago

1.1.4

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago