Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avkostin/goit-node-hw-01
Node.js Start to work with Node.js
https://github.com/avkostin/goit-node-hw-01
Last synced: about 18 hours ago
JSON representation
Node.js Start to work with Node.js
- Host: GitHub
- URL: https://github.com/avkostin/goit-node-hw-01
- Owner: AVKostin
- Created: 2022-07-12T15:35:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-17T20:12:29.000Z (about 2 years ago)
- Last Synced: 2023-03-05T07:14:23.016Z (over 1 year ago)
- Language: JavaScript
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Получаем и выводим весь список контактов в виде таблицы (console.table)
node index.js --action list
![image](https://user-images.githubusercontent.com/90350582/178807524-2f61ac95-785d-411a-8333-3f83c450f9ca.png)# Получаем контакт по id
node index.js --action get --id 5
![image](https://user-images.githubusercontent.com/90350582/178807696-56b2cb29-44d0-4f8b-a413-6e83b377f978.png)# Добавялем контакт
node index.js --action add --id 13 --name Mango --email [email protected] --phone 322-22-22
![image](https://user-images.githubusercontent.com/90350582/178808039-eb8b91a1-6f54-4b25-8583-4675093ddff6.png)# Удаляем контакт
node index.js --action remove --id=3
![image](https://user-images.githubusercontent.com/90350582/178808150-402f7acc-d8d5-4cd8-b60d-9fbcfba9b935.png)PS:
# Получаем обновлённый список контактов после добавленя и удаления некоторых контактов:
node index.js --action list
![image](https://user-images.githubusercontent.com/90350582/178808513-5eeee23f-254d-426d-824e-7f8741a37370.png)