{"id":48466183,"url":"https://github.com/typesnippet/react-phone-hooks","last_synced_at":"2026-04-07T04:32:34.485Z","repository":{"id":211425751,"uuid":"725675368","full_name":"typesnippet/react-phone-hooks","owner":"typesnippet","description":"React hooks and utility functions for parsing and validating phone numbers.","archived":false,"fork":false,"pushed_at":"2026-03-29T20:04:12.000Z","size":1192,"stargazers_count":8,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-29T21:34:11.270Z","etag":null,"topics":["hacktoberfest","hooks","input","number","parsing","phone","react","utilities","validation"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/typesnippet.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-30T16:31:33.000Z","updated_at":"2026-03-29T20:04:14.000Z","dependencies_parsed_at":"2023-12-24T03:45:30.303Z","dependency_job_id":"fc4226ca-0c97-4076-9c4c-b6474786cb9c","html_url":"https://github.com/typesnippet/react-phone-hooks","commit_stats":{"total_commits":108,"total_committers":4,"mean_commits":27.0,"dds":0.2592592592592593,"last_synced_commit":"be1dbddc2ad6bda73e19e6a45ab40339011b4f98"},"previous_names":["typesnippet/react-phone-hooks"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/typesnippet/react-phone-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesnippet%2Freact-phone-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesnippet%2Freact-phone-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesnippet%2Freact-phone-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesnippet%2Freact-phone-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typesnippet","download_url":"https://codeload.github.com/typesnippet/react-phone-hooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesnippet%2Freact-phone-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31500397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["hacktoberfest","hooks","input","number","parsing","phone","react","utilities","validation"],"created_at":"2026-04-07T04:32:34.398Z","updated_at":"2026-04-07T04:32:34.463Z","avatar_url":"https://github.com/typesnippet.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-phone-hooks \u003cimg src=\"https://github.com/typesnippet.png\" align=\"right\" height=\"64\" /\u003e\n\n[![npm](https://img.shields.io/npm/v/react-phone-hooks)](https://www.npmjs.com/package/react-phone-hooks)\n[![React](https://img.shields.io/badge/react-%E2%89%A516-blue)](https://www.npmjs.com/package/react-phone-hooks)\n[![types](https://img.shields.io/npm/types/react-phone-hooks)](https://www.npmjs.com/package/react-phone-hooks)\n[![License](https://img.shields.io/npm/l/react-phone-hooks)](https://github.com/typesnippet/react-phone-hooks/blob/master/LICENSE)\n[![Tests](https://github.com/typesnippet/react-phone-hooks/actions/workflows/tests.yml/badge.svg)](https://github.com/typesnippet/react-phone-hooks/actions/workflows/tests.yml)\n\nThis comprehensive toolkit features custom hooks and utility functions tailored for phone number formatting, parsing,\nand validation. It supports international standards, making it suitable for phone number processing applications across\ndifferent countries and regions.\n\n## Usage\n\nThis library can be used to build a phone number input component with a country selector for React applications. As well\nas to parse the phone metadata, validate phone numbers, format raw phone numbers into a more readable format and the\nopposite. You can use the [development](./development) to test and develop your own components.\n\n```jsx\nimport {getFormattedNumber, getMetadata, parsePhoneNumber, useMask} from \"react-phone-hooks\";\n\ngetFormattedNumber(\"440201111111\"); // +44 (02) 011 11111\ngetMetadata(\"440201111111\"); // [\"gb\", \"United Kingdom\", \"44\", \"+44 (..) ... .....\"]\nparsePhoneNumber(\"+44 (02) 011 11111\"); // {countryCode: 44, areaCode: \"02\", phoneNumber: \"01111111\", isoCode: \"gb\"}\n\nconst PhoneInput = (props) =\u003e {\n    return \u003cinput {...useMask(\"+1 (...) ... ....\")} {...props}/\u003e\n}\n```\n\n## Contribute\n\nAny contribution is welcome. Don't hesitate to open an issue or discussion if you have questions about your project's\nusage and integration. For ideas or suggestions, please open a pull request. Your name will shine on our contributors'\nlist. Be proud of what you build!\n\n## License\n\nCopyright (C) 2023 Artyom Vancyan. [MIT](https://github.com/typesnippet/react-phone-hooks/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypesnippet%2Freact-phone-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypesnippet%2Freact-phone-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypesnippet%2Freact-phone-hooks/lists"}