Package Exports
- port-numbers
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (port-numbers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
port-numbers

Get the information on network port numbers, based on IANA's public listing
Installation
$ npm install --save port-numbersExample
var pn = require("port-numbers");
// port -> service
pn.getService(80);
//=> { name: 'http', description: 'World Wide Web HTTP' }
pn.getService(3306);
//=> { name: 'mysql', description: 'MySQL' }
// service -> port
pn.getPort("ntp", "udp");
//=> { port: '123', protocol: 'udp', description: 'Network Time Protocol' }
pn.getPort("postgresql");
//=> { port: '5432', protocol: 'tcp', description: 'PostgreSQL Database' }API
.getService(port, [protocol])
portnumber : the port to lookup. Required.protocolstring : the protocol. Default:tcp.
.getPort(service, [protocol])
servicestring : the service to lookup. Required.protocolstring : the protocol. Default:tcp.
© 2015 silverwind, distributed under BSD licence