1.0.0 • Published 7 years ago

pragma-port v1.0.0

Weekly downloads
4
License
WTFPL
Repository
github
Last release
7 years ago

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

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

License

No WTFPL License image :(