service-parser

Service file parser for nodejs

service-parser

Service file parser for nodejs

npm install service-parser
var services = require("service-parser");
 
console.log(services.getByPort(80));
// { name: "http", port: 80, type: "tcp", aliases: [ "www" ] } 
 
console.log(services.getByName("ftp"));
// { name: "ftp", port: 21, type: "tcp", aliases: [ ] }