Socket
Socket
Sign inDemoInstall

myanmar-mobile-validator

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    myanmar-mobile-validator

validate myanmar mobile phone number and get it's info


Version published
Weekly downloads
8
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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==

Keywords

FAQs

Last updated on 06 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc