phone-number-generator
v1.2.9
Published
Mobile Phone number generator: GE, SA, UAE, KW, BH, QA, OM
Downloads
184
Maintainers
Readme
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"