Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/siberianmh/process-killer

Kill a Windows process by name.
https://github.com/siberianmh/process-killer

Last synced: 5 days ago
JSON representation

Kill a Windows process by name.

Awesome Lists containing this project

README

        

# Win Process Killer

> Kill Windows process by name.

## Install

```sh
$ npm install --save win-process-killer
# or
$ yarn add win-process-killer
```

## Usage

```js
const processKiller = require('win-process-killer')

;(() => {
const killed = processKiller.killProcessByName('notepad.exe')
console.log(killed) // => returns `true` if killed or `false` if `no`
})()
```

## API

`killProcessByName(name)`

Arguments:

- name `String` (required)

Returns `Boolean`, `true` if process successfuly killed or `false` if no.

## License

MIT