GithubHelp home page GithubHelp logo

ankology / taskkill Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sindresorhus/taskkill

0.0 0.0 0.0 24 KB

Wrapper for the Windows `taskkill` command. Ends one or more tasks or processes.

License: MIT License

JavaScript 100.00%

taskkill's Introduction

taskkill

Wrapper for the Windows taskkill command. Ends one or more tasks or processes.

Install

$ npm install taskkill

Usage

import {taskkill, taskkillSync} from 'taskkill';

await taskkill([pid, pid2]); //Async usage
taskkillSync([pid, pid2]); //Sync usage

API

See the taskkill docs for more.

The package export two methods with same arguments usage:

taskkill(input, options?)

Default export and async execution. Returns a Promise.

taskkillSync(input, options?)

Sync execution. Returns or throws.

Arguments

input

Type: string | number | string[] | number[]

One or more process IDs or image names, but not mixed.

options

The system, username, password options are mutually inclusive.

system

Type: string

Name or IP address of a remote computer (do not use backslashes). The default is the local computer.

username

Type: string

A user specified by User or Domain\User.

The default is the permissions of the current logged on user on the computer issuing the command.

password

Type: string

Password of the user account for the specified username.

filter

Type: string

Types of processes to include or exclude from termination.

See the taskkill docs for supported filters.

force

Type: boolean

Forcefully terminate processes. Ignored for remote processes as all remote processes are forcefully terminated.

tree

Type: boolean

Terminate all child processes along with the parent process, commonly known as a tree kill.

Related

  • tasklist - Wrapper for the Windows tasklist command
  • fkill - Force kill processes, cross-platform

Maintainers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.