Skip to content

MarianaDobrivska/CLI-application-node.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI application NodeJS  

Functionality:

  • 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

Usage:

There are 4 types of commands for actions listed above. You can find examples below, please run the commands in the terminal.

  1. node index.js --action="list"
    Receive and display the entire list of contacts.
  2. node index.js --action="get" --id=5
    Receive and display particular contact.
  3. node index.js --action="add" --name="Mango" --email="mango@gmail.com" --phone="322-22-22"
    Add new contact to the list.
  4. node index.js --action="remove" --id=1
    Delete contact.

Screenshots of command execution:

  1. first command
  2. second command
  3. third command
  4. fourth command

Releases

No releases published

Packages

No packages published