module to kill process on an occupied port
npm install freethenport[![NPM Version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Downloads Stats][npm-downloads]][npm-url]
Freethenport is a module to kill running process on a port either using cli or running from withing your code.
OS X & Linux:
``sh`
npm install freethenport -g
kill running process from a port using command line.
`sh`
node freethenport portNumber`
e.gsh`
node freethenport 8129
kill running porcess from your code
`sh`
freeport(port)
.then(res => console.log(res))
.catch(error => console.error(error));
* 1.0.0
* Published on npm (module code lunched)
* 2.0.1
* CHANGE: Update docs (module code remains unchanged)
* 2.0.2
* CHANGE: Update docs (module code remains unchanged)
* 2.0.3
* Updated function nameing
* 2.1.0
* Redeveloped kill port method in function.js
* 2.3.0
* Added windows support
Adeojo Emmanuel – @imm__immanuel – emmanuel.adeojo.ibk@gmail.com
Adegoke David – @dhaveed_ – davidadegoke31@gmail.com
John Foderaro - [@johnfoderaro]() - (johnfoderaro@icloud.com)
See LICENSE for more information.
https://github.com/adeojoemmanuel/free-port
1. Fork it (
2. Create your feature branch (git checkout -b feature/fooBar)git commit -am 'Add some fooBar'
3. Commit your changes ()git push origin feature/fooBar`)
4. Push to the branch (
5. Create a new Pull Request
[npm-image]: https://img.shields.io/npm/v/datadog-metrics.svg?style=flat-square
[npm-url]: https://npmjs.org/package/datadog-metrics
[npm-downloads]: https://img.shields.io/npm/dm/datadog-metrics.svg?style=flat-square
[travis-image]: https://img.shields.io/travis/dbader/node-datadog-metrics/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/dbader/node-datadog-metrics
[wiki]: https://github.com/yourname/yourproject/wiki