# ps-get

> Get system processes through ps

Latest version **1.1.0** (published 2020-04-30) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install ps-get
pnpm add ps-get
yarn add ps-get
bun add ps-get
```

## 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.1.0 |
| Published | 2020-04-30 |
| First published | 2020-04-26 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 22 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Joel Chen |
| Maintainers | jchip |
| Keywords | ps, process, processes |

## Links

- npm: https://www.npmjs.com/package/ps-get
- Repository: https://github.com/jchip/ps-get
- Homepage: https://jchip.github.io/ps-get/
- Issues: https://github.com/jchip/ps-get/issues
- npm.io page: https://npm.io/package/ps-get

## Recent versions

- 1.1.0 (latest) — 2020-04-30
- 1.0.1 — 2020-04-26

## README

# ps-get

Get running processes through `ps`.

- Support getting a tree of children that belong to a parent
- Platforms
  - Unix: uses `ps`
  - Windows: try to use `wmic` and then `powershell`

<https://github.com/jchip/ps-get>

## APIs

API references can be found [here](https://jchip.github.io/ps-get/modules/index.html)

Or just use your IDE for hint if it supports TypeScript and typedoc.

## Examples

```js
import { ps, psChildren } from "ps-get";

async function test() {
  const procs = await ps();
}

async function testChildren() {
  const children = await psChildren(1);
}
```

## Why

There are already quite a few modules like this that has millions of weekly downloads, so why another one?

- `ps-tree` - `event-stream`, bug, no activity.
- `ps-list` - no API to get children, me not a fan of embedding `.exe`, even if it's 5x faster.
- others - I didn't do enough searching.

# License

Licensed under the [Apache License, Version 2.0].

[apache license, version 2.0]: https://www.apache.org/licenses/LICENSE-2.0

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