编辑 | blame | 历史 | 原始文档

cli

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

npm install -g chance-cli

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

$ chance name --prefix true
Dr. Georgia Sanchez

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

More details in the chance-cli README