# process-tree

> Find child processes

Latest version **1.0.3** (published 2016-11-28) · MIT license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2016-11-28 |
| First published | 2015-07-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Maintainers | 1j01 |
| Keywords | process, processes, tree, child, children, subprocess, ps, ps-tree, process-tree, top, htop, wmic, tasks, taskmgr, task, task-manager |

## Links

- npm: https://www.npmjs.com/package/process-tree
- Repository: https://github.com/1j01/process-tree
- Homepage: https://github.com/1j01/process-tree#readme
- Issues: http://github.com/1j01/process-tree/issues
- npm.io page: https://npm.io/package/process-tree

## Recent versions

- 1.0.3 (latest) — 2016-11-28
- 1.0.2 — 2016-06-07
- 1.0.1 — 2016-06-07
- 1.0.0 — 2015-07-08

## README

# process-tree

> like [ps-tree](https://www.npmjs.com/package/ps-tree), but cross-platform, and providing sub-children

Get a tree of processes starting from the children of a given PID.

```js
require("process-tree")(pid, function(err, children){
	if(err){
		console.error(err);
	}else{
		console.log(JSON.stringify(children, null, 4));
		console.assert(children[0].ppid === pid);
		console.log(children[0].children[0].pid);
		console.log(children[0].name); // "Name" from wmic, "comm" from ps
	}
});
```

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