Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

phoney

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phoney

  • 0.2.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= phoney

This is a library for representing phone numbers. It provides a Phoney class that can format phone numbers depending on the region you set.

== Installation

Gem:: gem install phoney Source:: git clone git://github.com/habermann24/phoney.git

== Feature overview

  • Create phone number by parsing a string

    require 'phoney'

    region defaults to US

    Phoney.format("+17041234567")

    => "+1 (704) 123-4567"

  • Deals with many specific region formatting rules (e.g. DE)

    require 'phoney'

    Phoney.region = :de

    Phoney.format("04105456789")

    => "04105 456789"

== TODOs

  • More tests for different countries

FAQs

Package last updated on 31 Dec 2018

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