port-numbers
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/port-numbers package

8.0.10 • Public • Published

port-numbers

npm module that holds information on network port numbers based on IANA's data.

Usage

Depending on your environment you may need to use import attributes, import assertions or nothing at all.

import ports from "port-numbers";

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.

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

© silverwind, distributed under BSD licence

Readme

Keywords

none

Package Sidebar

Install

npm i port-numbers

Weekly Downloads

1,135

Version

8.0.10

License

BSD-2-Clause

Unpacked Size

686 kB

Total Files

3

Last publish

Collaborators

  • silverwind