0.1.3 • Published 6 months ago

@types/ps-node v0.1.3

Weekly downloads
501
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for ps-node 0.1
// Project: https://github.com/neekey/ps#readme
// Definitions by: Kyle Hensel <https://github.com/k-yle>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 08 Jul 2021 20:19:58 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Kyle Hensel.

0.1.2

7 months ago

0.1.3

6 months ago

0.1.1

3 years ago

0.1.0

4 years ago