phone-number-generator
TypeScript icon, indicating that this package has built-in type declarations

1.2.9 • Public • Published

"Buy Me A Coffee" codecov

phone-number-generator

NPM package: https://www.npmjs.com/package/phone-number-generator

Create random mobile phone numbers with a given country. Right now, supported countries are:

  • 🇩🇪 Germany(DE),

  • 🇻🇳 Vietnam(VN),

  • 🇸🇦 Saudi(SA),

  • 🇦🇪 UAE(AE),

  • 🇰🇼 Kuwait(KW),

  • 🇧🇭 Bahrain(BH),

  • 🇶🇦 Qatar(QA),

  • 🇴🇲 Oman(OM).

  • More on the way...

Installation

$ npm i phone-number-generator

Usage

import { PhoneNumber } from "phone-number-generator";

console.log(PhoneNumber.phoneNumberGenerator('SA')); // prints "5039485900"
// with country code
console.log(PhoneNumber.phoneNumberGenerator('SA', true)); // prints "+9665039485900"

Tests - Code coverage

Sunburst

Package Sidebar

Install

npm i phone-number-generator

Weekly Downloads

14

Version

1.2.9

License

ISC

Unpacked Size

7 kB

Total Files

10

Last publish

Collaborators

  • thanh.nguyen