pragma-port
v1.0.0
Published
Generate port number from string. Just for fun
Downloads
3
Maintainers
Readme
PragmaPort
Module for generation port number from string.
This module created just for fun.
Default busy ports is 3306
, 5432
, 6379
.
Used and tested on
- NodeJS 7+ Documentation
Install
npm i --save-dev pragma-port
Initialization and using
On javascript file
const pragmaPort = require('pragma-port');
const port = pragmaPort('sometext');
console.log(port); // -> 16452
On console:
On Ubuntu checking system busy ports using netstat -ntulp
command
git clone https://github.com/PragmaWolf/pragma-port.git
cd pragma-port
node index.js --text=sometext
// -> Port for text 'sometext' is 16452