renice

1.0.2 • Public • Published

renice

Change cpu process priority

Installation

npm install renice

Usage

const renice = require('renice')

// pid, priority
renice(process.pid, 42)
.then(() => {}).catch((err) => {})

For more informations about priorities see https://nodejs.org/api/os.html#os_os_setpriority_pid_priority. Note that on old node versions we'll fallback to wmic on windows and renice on unix.

Readme

Keywords

Package Sidebar

Install

npm i renice

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

1.77 kB

Total Files

3

Last publish

Collaborators

  • soyuka