- Allows to get all contacts from json file
- Allows to get particular contact by ID
- Allows to add new contact
- Allows to remove any contact by ID
There are 4 types of commands for actions listed above. You can find examples below, please run the commands in the terminal.
- node index.js --action="list"
Receive and display the entire list of contacts. - node index.js --action="get" --id=5
Receive and display particular contact. - node index.js --action="add" --name="Mango" --email="mango@gmail.com" --phone="322-22-22"
Add new contact to the list. - node index.js --action="remove" --id=1
Delete contact.