Asynchronous port scanner for Node.js
Portscanner can check a port, or range of ports, for 'open' or 'closed' statuses.
npm install portscanner
A brief example:
var portscanner =// Checks the status of a single portportscanner// Find the first available port. Asynchronously checks, so first port// determined as available is returned.portscanner// Find the first port in use or blocked. Asynchronously checks, so first port// to respond is returned.portscanner// You can also pass array of ports to checkportscanner// And skip host param. Default is '127.0.0.1'portscanner// And use promisesportscanner
The example directory contains a more detailed example.
Please create issues or pull requests for port scanning related features you'd like to see included.