port-numbers
v8.0.37
Published
Holds information on network port numbers, based on IANA's data
Readme
port-numbers
npm module that holds information on network port numbers based on IANA's data.
Usage
pnpm add port-numbersDepending on your environment you may need to use import attributes, import assertions or nothing at all.
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 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
