1.0.4 • Published 3 years ago

random-phone-numbers v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Random phone numbers

CI

Random phone numbers is a generator for phone numbers. You can pass a iso number for a country and the returned phone number returned will be specfic for the country.

The library contains Typescript definitions.

Examples

import { randomPhoneNumbers } from 'random-phone-numbers';

const randomPhoneNumber = randomPhoneNumbers.generate('GB');
console.log(randomPhoneNumber);
// +4472852385365

If you dont pass a country iso, generate will return a random US number

import { randomPhoneNumbers } from 'random-phone-numbers';

const randomPhoneNumber = randomPhoneNumbers.generate();
console.log(randomPhoneNumber);
// +15551435965

Todo

  • Support iso3 country codes
  • Add optional formatted support
  • Improve the testing suite
1.0.2

3 years ago

1.0.1

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago