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

fkill

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fkill

Fabulously kill processes. Cross-platform.

  • 7.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
190K
decreased by-7%
Maintainers
1
Weekly downloads
 
Created

What is fkill?

The fkill npm package is a utility for forcefully killing processes. It provides a simple and user-friendly way to terminate processes by their name, port, or PID (Process ID).

What are fkill's main functionalities?

Kill a process by name

This feature allows you to kill a process by specifying its name. In this example, the 'chrome' process is terminated.

const fkill = require('fkill');

fkill('chrome').then(() => {
  console.log('Chrome has been killed');
});

Kill a process by PID

This feature allows you to kill a process by specifying its PID. In this example, the process with PID 1337 is terminated.

const fkill = require('fkill');

fkill(1337).then(() => {
  console.log('Process with PID 1337 has been killed');
});

Kill a process by port

This feature allows you to kill a process by specifying the port it is using. In this example, the process running on port 8080 is terminated.

const fkill = require('fkill');

fkill(':8080').then(() => {
  console.log('Process running on port 8080 has been killed');
});

Force kill a process

This feature allows you to forcefully kill a process. In this example, the 'node' process is forcefully terminated.

const fkill = require('fkill');

fkill('node', {force: true}).then(() => {
  console.log('Node process has been forcefully killed');
});

Other packages similar to fkill

Keywords

FAQs

Package last updated on 27 Dec 2020

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