Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/siberianmh/process-killer
- Owner: siberianmh
- Created: 2021-01-06T18:10:19.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T03:57:51.000Z (over 1 year ago)
- Last Synced: 2023-03-03T22:31:18.790Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 557 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
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