Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

port-numbers

Package Overview
Dependencies
Maintainers
0
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

port-numbers

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

  • 8.0.17
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
992
decreased by-67.13%
Maintainers
0
Weekly downloads
 
Created
Source

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" 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.

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

© silverwind, distributed under BSD licence

FAQs

Package last updated on 24 Sep 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc