myanmar-mobile-validator

1.2.3 • Public • Published

Myanmar Mobile Phone Number Validator

Description: This project validates Myanmar mobile phone numbers and returns information about them.

Features:

  • Validates Myanmar mobile phone numbers.
  • Returns detailed information about the validated number, including:
    • Operator code
    • Operator name

Example Usage:

import Validator from "myanmar-mobile-validator";

const number1 = "+95 09 294 293 134";
const number2 = "၉၅ ၀၉ ၂၉၄ ၂၉၃ ၁၃၄"; // Myanmar Unicode

const info1 = Validator(number1);
const info2 = Validator(number2);

console.log(info1); // Object containing information about the number
console.log(info2); // Object containing information about the number (if valid)

if (!info1 || !info2) {
  console.log("Invalid Myanmar mobile phone number");
}

Avilable Formats

095 09 123 123 123
+95 09 123 123 123
95-09-123-123-132
9509123123123
959123123123
09 123 123 123
09 123123123
09123123123
9 123123132
9123123123
123123123

Refrence

https://www.ptd.gov.mm/LicenseslistDetail.aspx?id=P3KMgPdor32H5hDW/BFdTw==

Package Sidebar

Install

npm i myanmar-mobile-validator

Weekly Downloads

6

Version

1.2.3

License

ISC

Unpacked Size

42.1 kB

Total Files

4

Last publish

Collaborators

  • sithumyonyunt