tcp-free-port
v1.0.0
Published
Get a free tcp port, for node
Downloads
3
Readme
tcp-free-port
Get a free tcp port, for node
Install
npm i tcp-free-port
Usage
const freeTcpPort = require('tcp-free-port')
freeTcpPort((error, port) => {
if (error) throw error // or do something else
// use your port!
const server = net.createServer()
server.listen(port)
})
Related
License
ISC
Colophon
Made with ❤️ by Sebastiaan Deckers in 🇸🇬 Singapore.