get-node-named-cli-args
v1.0.1
Published
Get the command line arguments as an object
Downloads
4
Maintainers
Readme
get-node-named-cli-args
Requires Node 12 or later
Install
npm i get-node-named-cli-args
const getNamedArgs = require('get-node-named-cli-args')
Example Usage
CLI: node my-app.js foo=true bar=123 baz=cool
JS:
const getNamedArgs = require('get-node-named-cli-args')
const myArgs = getNamedArgs()// { foo: true, bar: 123: baz: 'cool' }