🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@types/detect-port

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/detect-port

TypeScript definitions for detect-port

1.3.3
ts4.3
ts4.4
npm
Version published
Weekly downloads
1.5M
2.66%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/detect-port

Summary

This package contains type definitions for detect-port (https://github.com/node-modules/detect-port).

Details

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

index.d.ts

// Type definitions for detect-port 1.3
// Project: https://github.com/node-modules/detect-port
// Definitions by: Ivan Medina <https://github.com/ivandevp>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

type DetectPortCallback = (err: Error, _port: number) => void;

interface PortConfig {
    port?: number;
    hostname?: string | undefined;
    callback?: DetectPortCallback | undefined;
}

interface DetectPort {
    (port: number | PortConfig | undefined, callback: DetectPortCallback): void;
    (port?: number | PortConfig): Promise<number>;
}
declare const detectPort: DetectPort;
export = detectPort;

Additional Details

  • Last updated: Sun, 28 May 2023 00:02:52 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Ivan Medina.

FAQs

Package last updated on 28 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts