Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

port-killer

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

port-killer

Kills the process running on a given port (assuming you have permission to do so)

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

100% test coverage

port-killer

Kills the process running on a given port (assuming you have permission to do so)

Command line convenience utility to kill a process running on the provided port. There are plenty of alternative (and likely superior) modules to achieve this. This one was written for a specific use-case.

Installation

Install via npm:

$ npm i -g port-killer

Usage

As a module:

const portkill = require('port-killer');
const results = portkill(8080);

console.log(results);

// returns an object with two properties
{
  // String of output providing pid if applicable
  message: 'Killed process(es) 6907',
  // Boolean indicating success or failure
  error: false
}

As a command line utility:

$ portkill 9945
Killed process(es) 6907

FAQs

Package last updated on 24 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc