@sil/args
v0.3.0
Published
Process CLI arguments
Downloads
15
Readme
Args
Get all your process.args in a nice JSON format
Installation
npm install @sil/args
Usage
command:
...
scripts: {
myScript: "node dist/cli.js --test something --with-or-without the value --or --are-you-sure 2 3 You know"
}
...
script:
import { getArgs } from "@sil/args";
const args = getArgs();
result:
{
test: 'something',
withOrWithout: ['the','value'],
or: true,
areYouSure: [2,3,'you','know']
}