# node-priority

> exposes the getpriority and setpriority system calls for adjusting priority

Latest version **0.1.5** (published 2015-10-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-priority
pnpm add node-priority
yarn add node-priority
bun add node-priority
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2015-10-28 |
| First published | 2015-10-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 3 |
| Maintainers | bpowers |
| Keywords | setpriority, getpriority, unistd, sys/time.h, syscall |

## Links

- npm: https://www.npmjs.com/package/node-priority
- Repository: https://github.com/bpowers/node-priority
- Issues: https://github.com/bpowers/node-priority/issues
- npm.io page: https://npm.io/package/node-priority

## Dependencies (2)

- [nan](https://npm.io/package/nan.md) ^2.1.0
- [bindings](https://npm.io/package/bindings.md) ^1.2.1

## Recent versions

- 0.1.5 (latest) — 2015-10-28
- 0.1.3 — 2015-10-22
- 0.1.2 — 2015-10-22
- 0.1.1 — 2015-10-22
- 0.1.0 — 2015-10-22

## README

# node-priority

[![Build Status](https://travis-ci.org/bpowers/node-priority.svg)](https://travis-ci.org/bpowers/node-priority)

This package provides access to the
[`getpriority(2)`](http://man7.org/linux/man-pages/man2/getpriority.2.html)
and
[`setpriority(2)`](http://man7.org/linux/man-pages/man2/setpriority.2.html)
system calls available on OSX, Linux and other UNIX variants.  This
can be used, for example, to implement the UNIX
[`nice(1)`](http://man7.org/linux/man-pages/man1/nice.1.html) utility.

## Usage

```javascript
var priority = require('node-priority');

priority.set(priority.Process, 0, 10, function(err) {
    if (err)
        throw err;
    priority.get(priority.Process, 0, function(err, prio) {
        console.log('successfully set priority to ' + prio);
    });
});
```

---
_Source: https://npm.io/package/node-priority · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
