https://github.com/disrachik/hm-node-cli-app
https://github.com/disrachik/hm-node-cli-app
commander nodejs nodemon
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/disrachik/hm-node-cli-app
- Owner: DisRachik
- Created: 2023-07-07T10:23:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-07T19:48:47.000Z (almost 2 years ago)
- Last Synced: 2025-01-20T07:43:43.719Z (4 months ago)
- Topics: commander, nodejs, nodemon
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CLI App (working with data in JSON)
## Commands:
- #### display all saved contacts in the console
`node index.js --action="list"` OR `node index -a list`

- #### display contact by Id or null if the desired contact does not exist
`node index.js --action="get" --id 05olLMgyVQdWRwgKfg5J6` OR
`node index -a get -i 05olLMgyVQdWRwgKfg5J6`

- #### add the contact to saved and display this contact
`node index.js --action="add" --name Mango --email [email protected] --phone 322-22-22`
OR `node index -a add -n Mango -e [email protected] -p 322-22-22`

- #### delete the contact by Id and display deleted contact or null if a contact with such an id does not exist
`node index.js --action="remove" --id qdggE76Jtbfd9eWJHrssH` OR
`node index -a remove -i qdggE76Jtbfd9eWJHrssH`
