ports

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

Usage no npm install needed!

<script type="module">
  import ports from 'https://cdn.skypack.dev/ports';
</script>

README

Ports registry

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

The registry lives in ~/.ports

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 local-tld!

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

License

Apache 2 License

Copyright

(c) 2013 Jan Lehnardt jan@apache.org