Socket
Socket
Sign inDemoInstall

port-numbers

Package Overview
Dependencies
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

port-numbers

Get the information on network port numbers, based on IANA's public listing


Version published
Weekly downloads
1.7K
decreased by-1.55%
Maintainers
1
Weekly downloads
 
Created
Source

#port-numbers NPM version Dependency Status

Get the information on network port numbers, based on IANA's public listing

###Installation

$ npm install --save port-numbers

###Example

var pn = require("port-numbers");
pn(80, function(err, result) {
    console.log(result);
    // => { name: 'http', description: 'World Wide Web HTTP' }
});
pn(53, "udp", function(err, result) {
    console.log(result);
    // => { name: 'domain', description: 'Domain Name Server' }
});

API

pn(port, [protocol], [callback])
  • port number : the port to lookup. Required.
  • protocol string : the protocol. Default: tcp.
  • callback function : the callback receives err and an object containing name and description.

© 2015 silverwind, distributed under BSD licence

Keywords

FAQs

Package last updated on 24 Jan 2015

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