# check-process

> check existence of process by pid

Latest version **1.0.0** (published 2017-03-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install check-process
pnpm add check-process
yarn add check-process
bun add check-process
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-03-08 |
| First published | 2017-03-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | zoujie.wzj |
| Maintainers | yibn2008 |
| Keywords | check-process |

## Links

- npm: https://www.npmjs.com/package/check-process
- Repository: https://github.com/yibn2008/check-process
- Homepage: https://github.com/yibn2008/check-process#readme
- Issues: https://github.com/yibn2008/check-process/issues
- npm.io page: https://npm.io/package/check-process

## Recent versions

- 1.0.0 (latest) — 2017-03-08

## README

# check-process

check existence of process by pid

## Usage

```js
const check = require('check-process')
const cp = require('child_process')

// return { exists: true, killable: false }
check(1)

// return { exists: true, killable: true }
let child = cp.exec(process.execPath, [someScript])
check(child.pid)
```

## API

### `check(pid)`

- `pid`, *{Number}* process PID

Check existence of process by pid.

Return a object:

```
{
  exists: <Boolean>,      // is process exists
  killable: <Boolean>     // is process killable
}
```

## LICENSE

MIT

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