├── index.js ├── index.d.ts ├── .gitignore ├── README.md └── package.json /index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('nice-napi'); 2 | -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- 1 | declare function nice(inc : number) : number; 2 | export = nice; 3 | 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .nyc_output 2 | node_modules 3 | package-lock.json 4 | dist 5 | coverage 6 | .esm-wrapper.js 7 | build/ 8 | prebuilds/ 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 69 – nice(2) bindings for Node.js 2 | 3 | https://linux.die.net/man/2/nice as a JS function. That’s it, that’s the module. 4 | 5 | ```js 6 | const nice = require('69'); 7 | nice(5); // Increase niceness by 5. 8 | ``` 9 | 10 | (This is an alias of [nice-napi](https://github.com/addaleax/nice-napi), if you happen to need a more safe-for-work name. 🙂) 11 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "69", 3 | "version": "2.0.2", 4 | "description": "nice(2) bindings for Node.js", 5 | "os" : [ "!win32" ], 6 | "main": "./index.js", 7 | "exports": { 8 | "import": "./.esm-wrapper.mjs", 9 | "require": "./index.js" 10 | }, 11 | "types": "./index.d.ts", 12 | "scripts": { 13 | "test": "echo \"Error: no test specified\" && exit 1", 14 | "prepack": "gen-esm-wrapper . ./.esm-wrapper.mjs" 15 | }, 16 | "license": "MIT", 17 | "dependencies": { 18 | "nice-napi": "^1.0.2" 19 | }, 20 | "repository": { 21 | "type": "git", 22 | "url": "git+https://github.com/addaleax/69" 23 | }, 24 | "keywords": [ 25 | "nice", 26 | "priority" 27 | ], 28 | "author": "Anna Henningsen " 29 | } 30 | --------------------------------------------------------------------------------