system-tasks
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

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

Package Sidebar

Install

npm i system-tasks

Weekly Downloads

2

Version

0.3.0

License

MIT

Unpacked Size

16.4 kB

Total Files

11

Last publish

Collaborators

  • ajanuw