File: cli.md

package info (click to toggle)
node-chance 2.2.6%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,656 kB
  • sloc: javascript: 16,572; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# cli

To use Chance from the command line, install `chance-cli` globally with:

```bash
npm install -g chance-cli
```

Then invoke any generator by name followed by options, like so:

```bash
$ chance name --prefix true
Dr. Georgia Sanchez

$ chance latitude --min 12.34 --max 56.78
22.01836
```

More details in the [chance-cli README](https://github.com/chancejs/chance-cli)