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
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.