Google's phone number handling library ported to Node

npm install node-phonenumber
4 downloads in the last day
29 downloads in the last week
200 downloads in the last month

node-phonenumber Build Status

NodeJS port of Google's libPhoneNumber


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);


Author & Credits

npm loves you