npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

plmn

v0.1.0

Published

Look up mobile network operator information by MCC/MNC (PLMN) codes

Readme

plmn

Look up mobile network operator information by MCC/MNC (PLMN) codes.

Installation

npm install plmn

Usage

This package is ESM-only. It cannot be used with require().

TypeScript

import { getOperatorInfo, type Operator } from 'plmn';

const operator = getOperatorInfo({ mcc: '310', mnc: '260' });

if (operator) {
  console.log(operator.operator);  // "T-Mobile USA"
  console.log(operator.country);   // "United States of America"
  console.log(operator.bands);     // ["GSM 1900", "LTE 700", "5G 600", ...]
}

JavaScript (ESM)

import { getOperatorInfo } from 'plmn';

const operator = getOperatorInfo({ mcc: '310', mnc: '260' });

console.log(operator?.operator);  // "T-Mobile USA"

CommonJS / require()

This package does not support CommonJS. If you need to use it in a CommonJS context, use dynamic import:

const { getOperatorInfo } = await import('plmn');

API

getOperatorInfo(input)

Retrieves operator information for a given MCC/MNC combination.

Parameters:

  • input.mcc - Mobile Country Code (3 digits, e.g., "310")
  • input.mnc - Mobile Network Code (2-3 digits, e.g., "260")

Returns: Operator | null - Returns null if the PLMN code is not found.

Type: Operator

type Operator = {
  mcc: string;        // Mobile Country Code (3 digits)
  mnc: string;        // Mobile Network Code (2-3 digits)
  plmn: string;       // Combined PLMN code (e.g., "310260")
  region: string | null;   // Geographic region
  country: string | null;  // Full country name
  iso: string | null;      // ISO 3166-1 alpha-2 country code
  operator: string;   // Full legal operator name
  brand: string | null;    // Commercial brand name
  tadig: string | null;    // TADIG code for roaming
  bands: string[];    // Supported frequency bands
};

Data Source

Data is sourced from mcc-mnc.net.

Using JSON Files Directly

The /dist/data directory contains individual JSON files for each PLMN code, named {PLMN}.json (e.g., 310260.json). This allows you to use the data directly in other programming languages without using this package.

Example JSON structure:

{
  "mcc": "310",
  "mnc": "260",
  "plmn": "310260",
  "region": "North America and the Caribbean",
  "country": "United States of America",
  "iso": "US",
  "operator": "T-Mobile USA",
  "brand": "T-Mobile",
  "tadig": "USAW6",
  "bands": ["GSM 1900", "LTE 700", "5G 600"]
}

Updating the Data

To regenerate the JSON data files from the source:

npm run generate

This downloads the latest data from mcc-mnc.net and generates JSON files in the dist/data/ directory.