Service file parser for node.js
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
node_modules/underscore
LICENSE
README.md
example.js
index.js
package.json

README.md

service-parser

Service file parser for nodejs

Install

npm install service-parser

Example

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: [ ] }