node-phonenumber

Google's phone number handling library ported to Node

npm install node-phonenumber
1 downloads in the last day
46 downloads in the last week
197 downloads in the last month

node-phonenumber Build Status

NodeJS port of Google's libPhoneNumber

Installation

Installing node-phonenumber

npm install node-phonenumber

Example Usage

var phone = require('node-phonenumber')

var phoneUtil = phone.PhoneNumberUtil.getInstance();
var phoneNumber = phoneUtil.parse('0139348815','MY');
var toNumber = phoneUtil.format(phoneNumber, phone.PhoneNumberFormat.INTERNATIONAL);

console.log(toNumber);

Author & Credits

npm loves you