1.0.2 • Published 4 years ago

renice v1.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

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.

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.0

8 years ago