phone-fns
Advanced tools
Changelog
v4.0.1
isValid
and breakdown
Changelog
v4.0.0
import phoneFns from 'phone-fns'
--> import * as phoneFns from 'phone-fns'
import { isValid } from 'phone-fns'
Kyanite v2.0.1
Changelog
v3.2.3
format
can now take in Number
type phone numbersChangelog
v3.2.1
Changelog
v3.1.0
format
s performance and broke it down to a more intelligent functionformat
s exampleChangelog
v3.0.0
find
function since it was rather pointlessmatch
function since it was rather pointlessC + (NNN) NNN-NNNN
format('C + (NNN) NNN-NNNN', 14445556666) // => '1 + (444) 555-6666'
breakdown
no longer handles or accepts country codes
format
function this is to make functions easier to useuglify-js
with terser
for performance gainsisValid
optimizations using KyaniteChangelog
v2.0.1
Changelog
v2.0.0
format
is now different, you only need to use the letter N
in your layout now in the order you want the numbers to fill in
N
is case insensitive(AAA) LLL-NNNN
now it is: (NNN) NNN-NNNN
or (nnn) nnn-nnNN
if you wanted to get creativefind
has been deprecated and may be removed in later versions, please transition to breakdown
format
it will now validate the phone number has enough digits to fill out the layout properlyChangelog
v1.0.1
eslint
to standardjs