open-index/open-npm huggingface dataset:
npm package: @sil/args
Description: Process CLI arguments
Author: Sil van Diepen
Latest version: 0.3.0

# Args

Get all your process.args in a nice JSON format

### Installation

```bash
npm install @sil/args
```

### Usage

__command:__

```js
    ...
    scripts: {
        myScript: "node dist/cli.js --test something --with-or-without the value --or --are-you-sure 2 3 You know"
    }
    ...
```

__script:__
```js
import { getArgs } from "@sil/args";

const args = getArgs();
```

__result:__
```js
{
    test: 'something',
    withOrWithout: ['the','value'],
    or: true,
    areYouSure: [2,3,'you','know']
}
```