Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ntwcklng/args-example
https://github.com/ntwcklng/args-example
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ntwcklng/args-example
- Owner: ntwcklng
- Created: 2017-05-02T18:06:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-02T18:06:22.000Z (over 7 years ago)
- Last Synced: 2024-10-12T11:12:54.736Z (3 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# args-example
If you want to develop a CLI app with subcommands, you have to add the files to the `bin` property in `package.json` like this:
```json
"bin": {
"music": "music.js",
"music-play": "music-play.js",
"music-stop": "music-stop.js"
}
```After that you have to run `npm link` to link the `bin` files to your local `bin` folder. Without that step you won't be able to execute subcommands like `music play`.