{"id":15837891,"url":"https://github.com/dhavalveera/separate-country-code-n-number","last_synced_at":"2026-05-18T15:07:52.735Z","repository":{"id":65171984,"uuid":"585410947","full_name":"dhavalveera/separate-country-code-n-number","owner":"dhavalveera","description":"NPM Package to separate the Country Code \u0026 Number","archived":false,"fork":false,"pushed_at":"2023-01-09T02:07:29.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T19:35:42.650Z","etag":null,"topics":["analyze","country","detect","identify","library","npm","npm-cli","npmjs","number","phone","phone-number"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dhavalveera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-05T05:12:24.000Z","updated_at":"2023-02-25T03:11:33.000Z","dependencies_parsed_at":"2023-01-13T15:50:21.272Z","dependency_job_id":null,"html_url":"https://github.com/dhavalveera/separate-country-code-n-number","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhavalveera%2Fseparate-country-code-n-number","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhavalveera%2Fseparate-country-code-n-number/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhavalveera%2Fseparate-country-code-n-number/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhavalveera%2Fseparate-country-code-n-number/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhavalveera","download_url":"https://codeload.github.com/dhavalveera/separate-country-code-n-number/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246672555,"owners_count":20815421,"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":["analyze","country","detect","identify","library","npm","npm-cli","npmjs","number","phone","phone-number"],"created_at":"2024-10-05T15:42:19.540Z","updated_at":"2026-05-18T15:07:47.710Z","avatar_url":"https://github.com/dhavalveera.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Lint](https://img.shields.io/github/actions/workflow/status/dhavalveera/separate-country-code-n-number/lint.yml)](https://github.com/dhavalveera/separate-country-code-n-number/actions/workflows/lint.yml)\n[![wappalyzer NPM](https://img.shields.io/badge/npm-Separate%20Country%20Code%20%26%20Number-brightgreen)](https://www.npmjs.com/package/@dhavalveera/separate-country-code-n-number)\n\n# Separate Country Code \u0026 Number\n\n\u003c!--- replace the NPM URL to my Portfolio's URL --\u003e\n\n**[Separate Country Code \u0026 Number](https://www.npmjs.com/package/@dhavalveera/separate-country-code-n-number) is used to separate the country ISD Code \u0026 Phone Number from the string, and returns Country Code, Phone Number \u0026 Country separately.**\n\nIf you don't have time to write the code to separate the country code \u0026 number from a single string, we offer the solution where you can get the Country ISD Code, Country Name \u0026 Phone Number separately with this tiny package.\n\n## Prerequisites\n\n- [Git](https://git-scm.com)\n- [Node.js](https://nodejs.org) version 14 or higher\n- [Yarn](https://yarnpkg.com)\n\n## Quick start\n\n```sh\ngit clone https://github.com/dhavalveera/separate-country-code-n-number.git\ncd separate-country-code-n-number\nyarn install\nyarn run link\n```\n\n## Usage\n\n### Command line\n\n```sh\nnode src/drivers/npm/cli.js \"+911234567890\"\n```\n\n**`output:`**\n\n```sh\nCountry ISD Code =\u003e  +91\nCountry Name =\u003e  India\nPhone Number is =\u003e  1234567890\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhavalveera%2Fseparate-country-code-n-number","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhavalveera%2Fseparate-country-code-n-number","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhavalveera%2Fseparate-country-code-n-number/lists"}