0.3.0 • Published 5 years ago
system-tasks v0.3.0
system-tasks
Get the list of system processes, and can perform kill, start, restart operations on a process
install
$ npm i system-tasksconst { SystemTask } = require("system-tasks");
SystemTask.tasks().then(({ tasks, stdout }) => {
console.log(tasks);
tasks.forEach(p => {
console.log(p.pname);
console.log(p.pid);
// p.kill();
// p.killLikes();
// p.start();
// p.reStart();
// p.reStartLikes();
});
})build
$ npm run build