Skip to content

HtetLinMaung/myanmar-operator-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Myanmar Operator Detector

This package is designed to help you detect the mobile operator from a given mobile number in Myanmar.

Installation

To install this package, you can use npm:

npm install myanmar-operator-detector

Or with yarn:

yarn add myanmar-operator-detector

Usage

Import the detectMyanmarMobileOperator function from the package:

import { detectMyanmarMobileOperator } from "myanmar-operator-detector";

Then, you can use it like so:

let operatorName = detectMyanmarMobileOperator("959404888722");
console.log(operatorName); // Outputs: "MPT"

The function will return the name of the mobile operator ("MPT", "Ooredoo", "Telenor", "MECTel", "MyTel") or "Unknown operator" if the number does not match any known patterns.

Contributing

We appreciate all contributions. If you are interested in contributing, please submit a pull request.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published