# child_pids

> Retrieve all pids for a process tree up to certain height.

Latest version **1.0.2** (published 2016-04-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install child_pids
pnpm add child_pids
yarn add child_pids
bun add child_pids
```

## 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.2 |
| Published | 2016-04-23 |
| First published | 2016-02-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vladimir Angelov |
| Maintainers | vangelov |

## Links

- npm: https://www.npmjs.com/package/child_pids
- Repository: https://github.com/vangelov/child_pids
- Homepage: https://github.com/vangelov/child_pids#readme
- Issues: https://github.com/vangelov/child_pids/issues
- npm.io page: https://npm.io/package/child_pids

## Dependencies (1)

- [is-running](https://npm.io/package/is-running.md) ^2.0.0

## Recent versions

- 1.0.2 (latest) — 2016-04-23
- 1.0.1 — 2016-03-08
- 1.0.0 — 2016-02-26

## README

# child_pids
Retrieve all pids in a process tree up to certain height.

## Installation
`npm install child_pids`

## Usage

```javascript
var childPids = require('child_pids'),
var parentPid = 56
var maxDepth = 0; // all children. if > 0 only children to that height of the process tree are returned

childPids.find(parentPid, maxDepth, function(err, pids) {
    if(!err) {
        console.log('Children pids: ', pids);
    }
});

```

### Test
To run the tests execute
`npm test`

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