{"id":22568011,"url":"https://github.com/titarenko/fix-phone","last_synced_at":"2025-07-08T17:37:38.906Z","repository":{"id":3121277,"uuid":"48490945","full_name":"titarenko/fix-phone","owner":"titarenko","description":"Validate and format phone number, or return nothing, if such phone is not valid.","archived":false,"fork":false,"pushed_at":"2022-12-07T17:34:35.000Z","size":367,"stargazers_count":4,"open_issues_count":8,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T11:12:32.547Z","etag":null,"topics":["decompose","decomposition","number","phone","validate","validation"],"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/titarenko.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}},"created_at":"2015-12-23T13:04:55.000Z","updated_at":"2021-08-23T08:11:30.000Z","dependencies_parsed_at":"2023-01-13T12:18:02.311Z","dependency_job_id":null,"html_url":"https://github.com/titarenko/fix-phone","commit_stats":null,"previous_names":[],"tags_count":65,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titarenko%2Ffix-phone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titarenko%2Ffix-phone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titarenko%2Ffix-phone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titarenko%2Ffix-phone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/titarenko","download_url":"https://codeload.github.com/titarenko/fix-phone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247819947,"owners_count":21001393,"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":["decompose","decomposition","number","phone","validate","validation"],"created_at":"2024-12-08T00:10:54.357Z","updated_at":"2025-04-10T12:26:03.054Z","avatar_url":"https://github.com/titarenko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fix-phone\n\n[![Build Status](https://secure.travis-ci.org/titarenko/fix-phone.png?branch=master)](https://travis-ci.org/titarenko/fix-phone) \n[![Coverage Status](https://coveralls.io/repos/github/titarenko/fix-phone/badge.svg?branch=master)](https://coveralls.io/github/titarenko/fix-phone?branch=master)\n\nValidate and format phone number, or return nothing, if such phone is not valid.\n\n## Installation\n\n```bash\nnpm i fix-phone --save\n```\n\n## Usage\n\n```js\nvar fix = require('fix-phone');\n\nfix('ua', '050-121-22-33'); // returns +380501212233\nfix('ua', '010-121-22-33'); // returns null\n\nfix.decompose('ua', '050-121-22-33'); // returns { country: '+380', local: '50', phone: '1212233' }\nfix.decompose('ua', '010-121-22-33'); // returns null\n```\n\n## Supported country codes\n\nTake look at [country modules directory](src/countries).\n\n## Contributors\n\n- [akhll](https://github.com/akhll)\n- [MaksimVovk](https://github.com/MaksimVovk)\n- [Erushenko](https://github.com/erushenko)\n- [turizaz](https://github.com/turizaz)\n- [jmakoff](https://github.com/jmakoff)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftitarenko%2Ffix-phone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftitarenko%2Ffix-phone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftitarenko%2Ffix-phone/lists"}