https://github.com/lestoni/iana-net-info
Get iana info on protocol numbers and services
https://github.com/lestoni/iana-net-info
Last synced: about 1 year ago
JSON representation
Get iana info on protocol numbers and services
- Host: GitHub
- URL: https://github.com/lestoni/iana-net-info
- Owner: lestoni
- License: mit
- Created: 2015-11-19T11:15:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-08-14T21:59:48.000Z (almost 6 years ago)
- Last Synced: 2024-08-08T15:00:47.326Z (almost 2 years ago)
- Language: JavaScript
- Size: 180 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iana-net-info
Get [IANA](iana.org) net info on [protocol numbers](http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)
and [service names](https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml).
## Install
```sh
$ npm install iana-net-info --save
```
## Usage
```javascript
var ianaNetInfo = require('iana-net-info');
// Example: Search info on HTTP service name
var serviceInfoArr = ianaNetInfo.service('http');
// Example: Search info on udp protocol
var protocoInfoArr = ianaNetInfo.protocol('udp');
```
## API
## ianaNetInfo.service(serviceName)
__serviceName__
Type: __String__
Returns an array of objects contain info on the service name.
## ianaNetInfo.protocol(keyword)
__keyword__
Type: __String__
Returns an array of objects contain info on the protocol keyword.
## License
MIT.