0.2.1 • Published 1 month ago

@sil/args v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

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']
}
0.2.1

1 month ago

0.2.0

1 month ago

0.1.0

1 year ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago