Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bahamas10/node-service-names
Service names and ports (from iana.org)
https://github.com/bahamas10/node-service-names
Last synced: 15 days ago
JSON representation
Service names and ports (from iana.org)
- Host: GitHub
- URL: https://github.com/bahamas10/node-service-names
- Owner: bahamas10
- Created: 2012-11-02T07:09:57.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2022-04-26T05:28:50.000Z (over 2 years ago)
- Last Synced: 2024-11-14T05:42:24.378Z (about 2 months ago)
- Language: JavaScript
- Size: 332 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
IANA service names and ports
============================Service names and ports (from iana.org)
Usage
-----In Node.js
``` js
> var services = require('service-names')
undefined
> services.tcp[80]
{ name: 'www-http',
description: 'World Wide Web HTTP' }
> services.tcp[22]
{ name: 'ssh',
description: 'The Secure Shell (SSH) Protocol' }
```In the Browser
```
alert(services.tcp[80].name); // => 'www-http'
```
Up to date list
---------------You can generate an up-to-date list of the protocols. Follow these steps:
git clone git://github.com/bahamas10/node-service-names.git
cd node-service-names
npm install # for xml2js and request
makeThis will run the included script `get-list.js` and redirect the output for you
Installation
------------npm install service-names
License
-------MIT Licensed