@types/ps-node
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/ps-node

Weekly Downloads

5,054

Version

0.1.3

License

MIT

Unpacked Size

3.93 kB

Total Files

5

Last publish

Collaborators

  • types