New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

phoneformat

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phoneformat

This is a copy of [albeebe/phoneformat.js](https://github.com/albeebe/phoneformat.js) with the following changes:

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

PhoneFormat

This is a copy of albeebe/phoneformat.js with the following changes:

  • This is a Bower package
  • Website is not a part of the repository
  • Updating is as simple as typing make (assuming curl is installed)
  • Exposed getNumberType(country, phone) to return the type of the phone number (mobile, landline, toll free, etc.)

Install

bower install phoneformat

Use

Reference phoneformat.min.js from your project.

Available functions:

  • countryForE164Number(phone)
  • formatNumberForMobileDialing(country, phone)
  • isValidNumber(phone, country)
  • formatE164(country, phone)
  • formatInternational(country, phone)
  • formatLocal(country, phone)
  • cleanPhone(phone)
  • countryCodeToName(country)

All of the above are subject to change in future versions.

Todo

  • AMD
  • Better API

Keywords

FAQs

Package last updated on 19 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc