# @types/ps-node

> TypeScript definitions for ps-node

Latest version **0.1.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/ps-node
pnpm add @types/ps-node
yarn add @types/ps-node
bun add @types/ps-node
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2023-11-07 |
| First published | 2020-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/ps-node
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ps-node
- npm.io page: https://npm.io/package/@types/ps-node

## Recent versions

- 0.1.3 (latest) — 2023-11-07
- 0.1.1 (ts3.6) — 2021-07-08
- 0.1.0 (ts3.1) — 2020-09-10
- 0.1.2 — 2023-10-18

## README

# Installation
> `npm install --save @types/ps-node`

# Summary
This package contains type definitions for ps-node (https://github.com/neekey/ps#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ps-node.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ps-node/index.d.ts)
````ts
export interface Program {
    arguments: string[];
    command: string;
    pid: number;
}

export interface Query {
    pid?: string | string[] | number | undefined;
    ppid?: number | undefined;
    command?: string | RegExp | undefined;
    arguments?: string | RegExp | undefined;
    psargs?: string | string[] | undefined;
}

export interface Signal {
    signal: string;
    timeout: number;
}

/** Query Process: Focus on pid & cmd */
export function lookup(query: Query, cb: (err: Error, list: Program[]) => void): void;

export function kill(pID: number | string, cb?: (err?: Error) => void): void;
export function kill(pID: number | string, signal?: string | Signal, cb?: (err?: Error) => void): void;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Kyle Hensel](https://github.com/k-yle).

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