# @types/tcp-port-used

> TypeScript definitions for tcp-port-used

Latest version **1.0.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/tcp-port-used
pnpm add @types/tcp-port-used
yarn add @types/tcp-port-used
bun add @types/tcp-port-used
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-11-07 |
| First published | 2018-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51491 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/tcp-port-used
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tcp-port-used
- npm.io page: https://npm.io/package/@types/tcp-port-used

## Recent versions

- 1.0.4 (latest) — 2023-11-07
- 1.0.2 (ts4.3) — 2023-09-12
- 1.0.1 (ts3.9) — 2022-03-16
- 1.0.0 (ts2.0) — 2018-10-16
- 1.0.3 — 2023-10-18

## README

# Installation
> `npm install --save @types/tcp-port-used`

# Summary
This package contains type definitions for tcp-port-used (https://github.com/stdarg/tcp-port-used).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tcp-port-used.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tcp-port-used/index.d.ts)
````ts
export interface TcpPortUsedOptions {
    port: number;
    host?: string;
    status?: boolean;
    retryTimeMs?: number;
    timeOutMs?: number;
}

export function check(port: number | TcpPortUsedOptions, host?: string): Promise<boolean>;

export function waitForStatus(
    port: number | TcpPortUsedOptions,
    host?: string,
    inUse?: boolean,
    retryTimeMs?: number,
    timeOutMs?: number,
): Promise<void>;

export function waitUntilFree(
    port: number | TcpPortUsedOptions,
    retryTimeMs?: number,
    timeOutMs?: number,
): Promise<void>;

export function waitUntilFreeOnHost(
    port: number | TcpPortUsedOptions,
    host?: string,
    retryTimeMs?: number,
    timeOutMs?: number,
): Promise<void>;

export function waitUntilUsed(
    port: number | TcpPortUsedOptions,
    retryTimeMs?: number,
    timeOutMs?: number,
): Promise<void>;

export function waitUntilUsedOnHost(
    port: number | TcpPortUsedOptions,
    host?: string,
    retryTimeMs?: number,
    timeOutMs?: number,
): Promise<void>;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Gaute Johansen](https://github.com/gautejohan).

---
_Source: https://npm.io/package/@types/tcp-port-used · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
