# @types/requires-port

> TypeScript definitions for requires-port

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

## Install

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

## 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.3 |
| Published | 2023-11-07 |
| First published | 2018-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51446 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.0.3 (latest) — 2023-11-07
- 1.0.0 (ts2.0) — 2018-12-25
- 1.0.2 — 2023-10-18
- 1.0.1 — 2023-09-27

## README

# Installation
> `npm install --save @types/requires-port`

# Summary
This package contains type definitions for requires-port (https://github.com/unshiftio/requires-port).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/requires-port.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/requires-port/index.d.ts)
````ts
export = requiresPort;

declare function requiresPort(port: string | number, protocol: requiresPort.Protocol): boolean;
declare function requiresPort(port: string | number, protocol: string): boolean; // tslint:disable-line:unified-signatures

declare namespace requiresPort {
    type Protocol = "http" | "https" | "ws" | "wss" | "ftp" | "gopher" | "file";
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender).

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