nice(2) bindings for Node.js
npm install nice-napi
yarn add nice-napi
pnpm add nice-napi
bun add nice-napi
https://linux.die.net/man/2/nice as a JS function. That’s it, that’s the module.
const nice = require('nice-napi'); nice(5); // Increase niceness by 5.