Manage a registry of unique port assignments
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.jshintrc
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
Gruntfile.js
LICENSE
README.md
index.js
package.json
test.js

README.md

Ports registry

Build Status Dependency Status devDependency Status

Manage a registry of unique port assignments for an operating system. Store user-defined meta-data with each port.

The registry lives in ~/.ports.json

Export an environment variable to override the location for the registry:

export PORTSHOME=/some/valid/directory

Note that this module currently doesn’t check whether a port is actually available. That’s TBD.

I want my app to register itself with ports!

var ports = require("ports");
ports.getPort("yourfancyproject");

License

Apache 2 License

Copyright

(c) 2013 Jan Lehnardt jan@apache.org