uniq-port

Generates a string-based unique port number


Keywords
port, tcp, port-number, generator, unique, hash, config, development, javascript, tcp-ports, utility
License
MIT
Install
npm install uniq-port@1.0.0

Documentation

 uniq-port npm build coverage dependencies

Generates invariant disjoint safe-ranged port numbers based on a string (e.g. appname).

Install

NPM

npm install uniq-port

Yarn

yarn add uniq-port

Usage

const uniqPort = require( 'uniq-port' )

uniqPort( 'your-unique-app-name' ) //-> 65293
uniqPort( 'uniq-port' ) //-> 54115

License

MIT © Vladimir Kalinichev