@types/pid-from-port
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

Installation

npm install --save @types/pid-from-port

Summary

This package contains type definitions for pid-from-port (https://github.com/kevva/pid-from-port#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pid-from-port.

index.d.ts

export = pidFromPort;

/**
 * Get PID from a port
 * @param port Port to lookup.
 */
declare function pidFromPort(port: number): Promise<number>;

declare namespace pidFromPort {
    /**
     * Get PIDs for a list of ports.
     * @param ports Ports to lookup.
     * @returns A `Promise<Map>` with the port as key and the PID as value.
     */
    function all(ports: number[]): Promise<Map<number, number>>;
    /**
     * Get all PIDs from ports.
     * @returns A `Promise<Map>` with the port as key and the PID as value.
     */
    function list(): Promise<Map<number, number>>;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by BendingBender.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.2
    62
  • 1.1.1
    0
  • 1.1.0
    5

Package Sidebar

Install

npm i @types/pid-from-port

Weekly Downloads

67

Version

1.1.2

License

MIT

Unpacked Size

3.76 kB

Total Files

5

Last publish

Collaborators

  • types