A npm package for working with Myanmar phone numbers
currently only supports ES modules
- Check if a phone number is a valid Myanmar phone number
- Get the operator from a phone number
Using npm:
$ npm install mm-mobile-tool
Once the package is installed, you can import the library using import
:
import mmphone from 'mm-mobile-tool';
import mmphone from 'mm-mobile-tool';
if(mmphone.isValid("09440813577")){
console.log("Phone number is valid");
}
import mmphone,{ Operator } from 'mm-mobile-tool';
if(mmphone.getOperator("09440813577")===Operator.MPT){
console.log("Phone number is MPT");
}
- MPT = Operator.MPT
- Ooredoo = Operator.OOREDOO
- ATOM = Operator.ATOM
- MECTel = Operator.MECTEL
- MyTel = Operator.MYTEL