{"id":26610915,"url":"https://github.com/yevheniidatsenko/goit-node-cli","last_synced_at":"2026-05-17T02:36:03.724Z","repository":{"id":284000511,"uuid":"953498396","full_name":"yevheniidatsenko/goit-node-cli","owner":"yevheniidatsenko","description":"⚙️ Home Task | Fullstack. Backend development: NodeJS |  Creating Console Applications","archived":false,"fork":false,"pushed_at":"2025-03-23T15:03:41.000Z","size":488,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T03:59:20.459Z","etag":null,"topics":["ccl","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/yevheniidatsenko.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":"2025-03-23T14:09:17.000Z","updated_at":"2025-03-23T15:06:57.000Z","dependencies_parsed_at":"2025-03-23T16:20:26.555Z","dependency_job_id":null,"html_url":"https://github.com/yevheniidatsenko/goit-node-cli","commit_stats":null,"previous_names":["yevheniidatsenko/goit-node-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yevheniidatsenko/goit-node-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yevheniidatsenko%2Fgoit-node-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yevheniidatsenko%2Fgoit-node-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yevheniidatsenko%2Fgoit-node-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yevheniidatsenko%2Fgoit-node-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yevheniidatsenko","download_url":"https://codeload.github.com/yevheniidatsenko/goit-node-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yevheniidatsenko%2Fgoit-node-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33125334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"online","status_checked_at":"2026-05-17T02:00:05.366Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ccl","goit-node-cli","nodejs"],"created_at":"2025-03-24T02:24:10.119Z","updated_at":"2026-05-17T02:36:03.707Z","avatar_url":"https://github.com/yevheniidatsenko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Home Assignment: Creating Console Applications\n\n## Description\n\nThis project is a Node.js console application for managing a contact list. The task involved setting up a repository, implementing functionality to read, add, delete, and retrieve contacts, and executing commands via the terminal.\n\n## Implementation Steps\n\n1. **Project Setup:**\n\n   - Created a repository `goit-node-cli`.\n   - Initialized the project with `npm init`.\n   - Installed `commander` as a dependency.\n\n2. **Core Functionality:**\n   - Implemented `contacts.js` with file system operations using `fs/promises` and `path`.\n   - Functions:\n     - `listContacts()`: Retrieves all contacts.\n     - `getContactById(id)`: Finds a contact by ID.\n     - `addContact(name, email, phone)`: Adds a new contact.\n     - `removeContact(id)`: Deletes a contact.\n3. **Command Line Execution:**\n   - Commands used:\n     ```sh\n     node index.js -a list\n     node index.js -a get -i \u003ccontactId\u003e\n     node index.js -a add -n John -e john@example.com -p 123-456-7890\n     node index.js -a remove -i \u003ccontactId\u003e\n     ```\n\n## Results\n\n- Successfully implemented all required functionalities.\n- Below is a screenshot of the console output showcasing the results of executed commands:\n\n![Task Results](/screenshots/SCR_1.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyevheniidatsenko%2Fgoit-node-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyevheniidatsenko%2Fgoit-node-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyevheniidatsenko%2Fgoit-node-cli/lists"}