Registry / utility / phony
library3.0.6rbrubygemsunverified

Fast international phone number (E164 standard) normalizing, splitting and formatting with many formatting options.

gem install phony
INSTALL
IMPORT
SIG · PHONY
P
phony
utilityrubyv3.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Phony
require 'phony'

Format an international phone number.

require 'phony' number = '+1 212 555 1234' formatted = Phony.format(number, format: :international) puts formatted # => +1 212 555 1234
Debug
Known issues
gotchaDoes not validate phone numbers; only formats and normalizes.
fix
Use a separate validation library or regex to verify number validity before formatting.
affects: >= 3.0.0
Upgrade
Version history
3.0.6latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
phony — gem install phony · libregistry