https://github.com/octabytes/format-phone
Convert phone number into human readable format
https://github.com/octabytes/format-phone
Last synced: about 1 month ago
JSON representation
Convert phone number into human readable format
- Host: GitHub
- URL: https://github.com/octabytes/format-phone
- Owner: octabytes
- License: mit
- Created: 2022-08-24T01:30:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-24T04:38:13.000Z (almost 4 years ago)
- Last Synced: 2025-10-03T19:53:58.234Z (9 months ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# format-phone
Convert phone number into human readable format
# Usage
```js
import formatPhone from "@octabytes/format-phone";
formatPhone("923321234567"); // +92 332-1234567
formatPhone("16505551234"); // 1 (650) 555-1234
```