port-numbers
Advanced tools
Comparing version 4.0.20 to 5.0.0
{ | ||
"name": "port-numbers", | ||
"version": "4.0.20", | ||
"version": "5.0.0", | ||
"description": "Get information on network port numbers and services, based on IANA's public listing", | ||
@@ -12,3 +12,3 @@ "author": "silverwind <me@silverwind.io> (https://github.com/silverwind)", | ||
"engines": { | ||
"node": ">=6" | ||
"node": ">=8" | ||
}, | ||
@@ -32,8 +32,9 @@ "keywords": [ | ||
"devDependencies": { | ||
"csv-parse": "^4.6.5", | ||
"eslint": "^6.6.0", | ||
"eslint-config-silverwind": "^5.0.0", | ||
"got": "^9.6.0", | ||
"updates": "^9.0.1" | ||
"csv-parse": "4.6.5", | ||
"eslint": "6.6.0", | ||
"eslint-config-silverwind": "5.0.0", | ||
"got": "9.6.0", | ||
"updates": "9.0.1", | ||
"versions": "7.0.2" | ||
} | ||
} |
@@ -14,14 +14,14 @@ # port-numbers | ||
portNumbers.getService(6379); | ||
//=> { name: 'redis', description: 'An advanced key-value cache and store' } | ||
// { name: 'redis', description: 'An advanced key-value cache and store' } | ||
portNumbers.getService(26257); | ||
//=> { name: 'cockroach', description: 'CockroachDB' } | ||
// { name: 'cockroach', description: 'CockroachDB' } | ||
portNumbers.getService(123, 'udp'); | ||
//=> { name: 'ntp', description: 'Network Time Protocol' } | ||
// { name: 'ntp', description: 'Network Time Protocol' } | ||
portNumbers.getPort('redis'); | ||
//=> { port: 6379, protocol: 'tcp', description: 'An advanced key-value cache and store' } | ||
// { port: 6379, protocol: 'tcp', description: 'An advanced key-value cache and store' } | ||
portNumbers.getPort('cockroach'); | ||
//=> { port: 26257, protocol: 'tcp', description: 'CockroachDB' } | ||
// { port: 26257, protocol: 'tcp', description: 'CockroachDB' } | ||
portNumbers.getPort('ntp', 'udp'); | ||
//=> { port: 123, protocol: 'udp', description: 'Network Time Protocol' } | ||
// { port: 123, protocol: 'udp', description: 'Network Time Protocol' } | ||
``` | ||
@@ -28,0 +28,0 @@ |
1756082
6