Native Node.js binding for enumerate, find and kill processes by OS specific API
Installation
Note: The module is uses the node-gyp
and c++ compiler
with c++11 support to build the extension.
You can use npm
to download and install it:
- The latest
ps-native
package:npm install ps-native
- GitHub's
master
branch:npm install https://github.com/kalexey89/node-ps-native/tarball/master
Supported OS and platforms
OS:
Windows
(desktop: Window 7+, server: Windows Server 2008+);Linux
(any Linux-based distributives);MacOS(plans...).
Platforms:
Usage
Note: the module must be installed before use.
const ps = ;/** Enumerate processes*/ps;/** Find processes*/// By PIDps;// By nameps;// By regexpps;/** Kill process*/ps;
API
See the API documentation in the wiki.
Testing
mocha
is required to run unit tests.
In ps-native
directory (where its package.json
resides) run the following:
npm install mocha
npm test
License
MIT
, © 2017 Kuznetsov Aleksey (kalexey89).