Socket
Socket
Sign inDemoInstall

myanmar-operator-detector

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    myanmar-operator-detector

A package to detect the mobile operator from a given mobile number in Myanmar


Version published
Weekly downloads
4
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 09 Jun 2023

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