Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.22 KB

README.md

File metadata and controls

37 lines (28 loc) · 1.22 KB

 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