{"id":21279549,"url":"https://github.com/oleksandr-romashko/goit-node-cli","last_synced_at":"2026-05-18T08:33:48.777Z","repository":{"id":254114769,"uuid":"844922404","full_name":"oleksandr-romashko/goit-node-cli","owner":"oleksandr-romashko","description":"Command-line application to manage your contacts.","archived":false,"fork":false,"pushed_at":"2024-08-23T08:25:39.000Z","size":910,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T04:08:46.466Z","etag":null,"topics":["cli","commander","goit-node-cli","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oleksandr-romashko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-20T08:26:04.000Z","updated_at":"2024-08-23T08:25:42.000Z","dependencies_parsed_at":"2024-08-21T14:12:53.071Z","dependency_job_id":"8b17c5e0-1e72-4631-a6cd-ce80ca84676f","html_url":"https://github.com/oleksandr-romashko/goit-node-cli","commit_stats":null,"previous_names":["oleksandr-romashko/goit-node-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleksandr-romashko%2Fgoit-node-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleksandr-romashko%2Fgoit-node-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleksandr-romashko%2Fgoit-node-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleksandr-romashko%2Fgoit-node-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oleksandr-romashko","download_url":"https://codeload.github.com/oleksandr-romashko/goit-node-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243738954,"owners_count":20339997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","commander","goit-node-cli","nodejs"],"created_at":"2024-11-21T10:23:51.565Z","updated_at":"2026-05-18T08:33:43.756Z","avatar_url":"https://github.com/oleksandr-romashko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contacts management CLI application\n\n#### goit-node-cli\n\n\u003cp align=\"center\"\u003e\n  \u003cimg align=\"center\" src=\"./assets/thumbnail.jpg\" width=\"720\" title=\"Project thumbnail\" alt=\"project thumbnail\"\u003e\n\u003c/p\u003e\n\n\n\u003ch4 align=\"center\"\u003e\n  Command-line application to store and manage your contacts.\n\u003c/h4\u003e\n\n\n## Project description\n\nStore and manage your contacts using a command-line interface: \n\n* Display the entire list of stored contacts\n* Retrieve specific contacts by ID\n* Add new contacts\n* Remove existing contacts\n\n## Quickstart\n\n1) Download the files from the [repository](https://github.com/oleksandr-romashko/goit-node-cli).\n2) Make sure you have the [latest Node.js LTS version](https://nodejs.org/en/download/package-manager) installed on your machine. \n3) Install the application dependencies using the `npm install` command in your terminal.\n\n## Usage\n\n1) Retrieves and displays the entire list of contacts as a table (console.table):\n    ```bash\n    node index.js -a list\n    ```\n    \u003cp align=\"center\"\u003e\n      \u003cimg align=\"center\" src=\"./assets/screenshot-retrieve-all.png\" width=\"720\" title=\"Screenshot retrieve all contacts\" alt=\"screenshot retrieve all contacts\"\u003e\n    \u003c/p\u003e\n    \u003cp align=\"center\"\u003e\n      \u003cimg align=\"center\" src=\"./assets/screenshot-retrieve-all-info-no-contacts.png\" width=\"720\" title=\"Screenshot retrieve all info no contacts\" alt=\"screenshot retrieve all info no contacts\"\u003e\n    \u003c/p\u003e\n2) Retrieves a contact by ID and logs the contact object to the console or null if a contact with that ID does not exist:\n    ```bash\n    node index.js -a get -i 05olLMgyVQdWRwgKfg5J6\n    ```\n    \u003cp align=\"center\"\u003e\n      \u003cimg align=\"center\" src=\"./assets/screenshot-retrieve-single-contact.png\" width=\"720\" title=\"Screenshot retrieve single contact.png\" alt=\"screenshot retrieve single contact\"\u003e\n    \u003c/p\u003e\n    \u003cp align=\"center\"\u003e\n      \u003cimg align=\"center\" src=\"./assets/screenshot-retrieve-non-existing-contact.png\" width=\"720\" title=\"Screenshot retrieve single contact.png\" alt=\"screenshot retrieve single contact\"\u003e\n    \u003c/p\u003e\n3) Adds a contact and logs the newly created contact object to the console:\n    ```bash\n    node index.js -a add -n Mango -e mango@gmail.com -p 322-22-22\n    ```\n    \u003cp align=\"center\"\u003e\n      \u003cimg align=\"center\" src=\"./assets/screenshot-add-new-contact.png\" width=\"720\" title=\"screenshot add new contact.png\" alt=\"screenshot add new contact.png\"\u003e\n    \u003c/p\u003e\n    There is no check for duplicates.\n4) Removes a contact and logs the deleted contact object to the console or null if a contact with that ID does not exist:\n    ```bash\n    node index.js -a remove -i qdggE76Jtbfd9eWJHrssH\n    ```\n    \u003cp align=\"center\"\u003e\n      \u003cimg align=\"center\" src=\"./assets/screenshot-remove-single-contact.png\" width=\"720\" title=\"Screenshot remove contact\" alt=\"screenshot remove contact\"\u003e\n    \u003c/p\u003e\n    \u003cp align=\"center\"\u003e\n      \u003cimg align=\"center\" src=\"./assets/screenshot-remove-non-existing-contact.png\" width=\"720\" title=\"Screenshot remove contact\" alt=\"screenshot remove contact\"\u003e\n    \u003c/p\u003e\n5) Errors while reading from / writing to db file or parsing / stringifying json:\n    \u003cp align=\"center\"\u003e\n      \u003cimg align=\"center\" src=\"./assets/screenshot-error-reading-from-db-file.png\" width=\"720\" title=\"Screenshot error reading from file\" alt=\"screenshot error reading from file\"\u003e\n    \u003c/p\u003e\n    \u003cp align=\"center\"\u003e\n      \u003cimg align=\"center\" src=\"./assets/screenshot-error-writing-to-db-file.png\" width=\"720\" title=\"Screenshot error writing to file\" alt=\"screenshot error writing to file\"\u003e\n    \u003c/p\u003e\n    \u003cp align=\"center\"\u003e\n      \u003cimg align=\"center\" src=\"./assets/screenshot-error-json-parse.png\" width=\"720\" title=\"Screenshot error parsing json\" alt=\"screenshot error parsing json\"\u003e\n    \u003c/p\u003e\n    \u003cp align=\"center\"\u003e\n      \u003cimg align=\"center\" src=\"./assets/screenshot-error-json-stringify.png\" width=\"720\" title=\"Screenshot error stringifying json\" alt=\"Screenshot error stringifying json\"\u003e\n    \u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleksandr-romashko%2Fgoit-node-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foleksandr-romashko%2Fgoit-node-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleksandr-romashko%2Fgoit-node-cli/lists"}