@art-of-coding/port-available
v0.0.1
Published
Check if a port is available for use
Downloads
2
Maintainers
Readme
Port-Available
Simple module which checks if a port is available for use.
No dependencies.
Install
Install through npm:
> npm i @art-of-coding/port-available
Example
import portAvailable from '@art-of-coding/port-available'
const available = await portAvailable(3003)
if (available) {
console.log('Port 3003 is available!')
} else {
console.log('Port 3003 is NOT available!')
}
License
Copyright 2021 Michiel van der Velde.
This software is licensed under the MIT License.