Phoneify
A very simple module that can parse an input to a readble, clean format for phone numbers.
Installation
Through npm:
$ npm install phoneify
API Documentation:
There's only one function implemented:
var phoneify = ; // phoneify is a function that takes one parametervar input = 12345678901;console; // parameter will be the number
You can choose to either include the leading "1" at the beginning of the phone number or leave it. But the length, initially, should be either 10 or 11 characters long.
Example output (will always return an object):
To access a specific format:
var phoneify = ;var input = 12345678901;format = ;console;console;
Output:
+12345678901
(234)-567-8901
License
MIT.