A native Windows API binding to have a list of running processes on windows.
const Controls = require('.\\build\\Release\\nodejs-windows-process-monitor')
console.log(Controls)
ProcessMonitor = new Controls.JSProcessMonitor()
console.log("\nprocesses : " + ProcessMonitor.getActiveProcesses());
Returns list of comma separated active process running in windows.
To build the project you need in Windows to install windows-build-tools in an elevated PowerShell prompt npm install --global --production windows-build-tools
and then npm install
or if you have node-gyp
installed globally
npm install -g node-gyp
$ node-gyp configure
$ node-gyp build
The repository contains a demo of the usage
$ node demo.js