Service names port numbers (SNPN) is a simple library to get which service is commonly assigned to a port
Reference: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml
$ git clone [email protected]:aldnav/snpn.git && cd snpn
$ npm i
$ npm run watch
$ npm install -g . # install snpn globally
$ snpn -h
$ snpn i # init database
$ npm test # run tests
$ npm uninstall -g snpn # uninstall
Usage: snpn <command>
Service names port numbers
Options:
-h, --help display help for command
Commands:
p [port] Retrieve a list of services commonly assigned to the port
i
help [command] display help for command
$ snpn p 10 5432
Looking up services with port 10...
(tcp) Unassigned
(udp) Unassigned
Looking up services with port 5432...
postgresql (udp) PostgreSQL Database
postgresql (tcp) PostgreSQL Database