JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7191
  • Score
    100M100P100Q121827F

Google's phone number handling library ported to node.js

Package Exports

  • libphonenumber

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (libphonenumber) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Libphonenumber by google over NodeJs

Simple NodeJs app providing an http endpoint to retrieve a phone number with its international prefix.

Enjoy :)

Simple example on Heroku

First, deploy the app to an heroku instance, then just query it:

http://yourapp.herokuapp.com/?number=415-603-4232&country_code=US
=> {"e164":"+14156034232","national":"(415) 603-4232","valid":true,"type":"FIXED_LINE_OR_MOBILE"}

Socialcam - http://socialcam.com