0.3.0 • Published 3 years ago

system-tasks v0.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

system-tasks

Get the list of system processes, and can perform kill, start, restart operations on a process

install

$ npm i system-tasks
const { 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