0.0.1 • Published 3 years ago
@art-of-coding/port-available v0.0.1
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.
0.0.1
3 years ago