https://github.com/john-doherty/is-port-busy
A simple node module to check if a TCP port is busy on the local machine.
https://github.com/john-doherty/is-port-busy
node-module nodejs tcp-port
Last synced: 2 months ago
JSON representation
A simple node module to check if a TCP port is busy on the local machine.
- Host: GitHub
- URL: https://github.com/john-doherty/is-port-busy
- Owner: john-doherty
- License: isc
- Created: 2016-09-30T20:59:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-13T23:20:10.000Z (about 7 years ago)
- Last Synced: 2025-03-07T22:34:04.676Z (3 months ago)
- Topics: node-module, nodejs, tcp-port
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# is-port-busy
[](https://app.shippable.com/projects/5818b23cffe90f0e00ac83de) [](https://www.npmjs.com/package/is-port-busy) [](https://www.linkedin.com/in/john-i-doherty) [](https://twitter.com/mrJohnDoherty)
A simple node module to check if a TCP port is busy on the local machine. See also [is-port-free](https://www.npmjs.com/package/is-port-free)
## Installation
```bash
$ npm install --save is-port-busy
```## Example
```js
var isPortBusy = require('is-port-busy');isPortBusy(8080).then(function(){
console.log('yes');
})
.catch(function(){
console.log('no');
});
```## Running tests
Install dev dependencies and run tests:
```
$ npm install -d && npm test
```## License
Licensed under [ISC License](LICENSE) © [John Doherty](http://www.johndoherty.info)