# port-numbers

> Holds information on network port numbers, based on IANA's data

Latest version **8.0.35** (published 2026-09-05) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install port-numbers
pnpm add port-numbers
yarn add port-numbers
bun add port-numbers
```

## Health

**Score 68/100 (B)** — status: active.

Positive: has types package; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 8.0.35 |
| Published | 2026-09-05 |
| First published | 2015-01-24 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | separate (@types/port-numbers) |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 673.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 33 |
| Author | silverwind |
| Maintainers | silverwind |

## Links

- npm: https://www.npmjs.com/package/port-numbers
- Repository: https://github.com/silverwind/port-numbers
- npm.io page: https://npm.io/package/port-numbers

## Recent versions

- 8.0.35 (latest) — 2026-09-05
- 8.0.34 — 2026-08-07
- 8.0.33 — 2026-08-05
- 8.0.32 — 2026-05-21
- 8.0.31 — 2026-04-21
- 8.0.30 — 2026-02-14
- 8.0.28 — 2025-07-16
- 8.0.27 — 2025-06-17
- 8.0.26 — 2025-05-20
- 8.0.25 — 2025-03-29
- 8.0.24 — 2025-03-12
- 8.0.23 — 2025-02-15
- 8.0.22 — 2025-01-24
- 8.0.21 — 2024-11-27
- 8.0.20 — 2024-11-23
- … 157 more at https://npm.io/package/port-numbers/versions

## README

# port-numbers
[![](https://img.shields.io/npm/v/port-numbers.svg?style=flat)](https://www.npmjs.org/package/port-numbers) [![](https://img.shields.io/npm/dm/port-numbers.svg)](https://www.npmjs.org/package/port-numbers) [![](https://packagephobia.com/badge?p=port-numbers)](https://packagephobia.com/result?p=port-numbers)

npm module that holds information on network port numbers based on [IANA's data](http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml).

### Usage

Depending on your environment you may need to use [import attributes](https://github.com/tc39/proposal-import-attributes), [import assertions](https://nodejs.org/api/esm.html#import-assertions) or [nothing at all](https://bun.sh/guides/runtime/import-json).


```js
import ports from "port-numbers" with {type: "json"};

ports["6379/tcp"];
// ["redis", "An advanced key-value cache and store"]
ports["123/udp"];
// ["ntp", "Network Time Protocol"]
```

### API

The export is a JSON object in with `port/proto` as key and `[name, description]` as value.

```json
{
  "6379/tcp": [
    "redis",
    "An advanced key-value cache and store"
  ]
}
```

© [silverwind](https://github.com/silverwind), distributed under BSD licence

---
_Source: https://npm.io/package/port-numbers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
