# @types/end-of-stream

> TypeScript definitions for end-of-stream

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

## Install

```sh
npm install @types/end-of-stream
pnpm add @types/end-of-stream
yarn add @types/end-of-stream
bun add @types/end-of-stream
```

## 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.4.4 |
| Published | 2023-11-07 |
| First published | 2017-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 1.4.4 (latest) — 2023-11-07
- 1.4.1 (ts3.6) — 2021-07-06
- 1.4.0 (ts2.0) — 2017-09-27
- 1.4.3 — 2023-10-18
- 1.4.2 — 2023-09-23

## README

# Installation
> `npm install --save @types/end-of-stream`

# Summary
This package contains type definitions for end-of-stream (https://github.com/mafintosh/end-of-stream).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/end-of-stream.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/end-of-stream/index.d.ts)
````ts
/// <reference types="node"/>

interface Options {
    readable?: boolean | undefined;
    writable?: boolean | undefined;
    error?: boolean | undefined;
}
type Stream = NodeJS.ReadableStream | NodeJS.WritableStream;
type Callback = (error?: Error | null) => void;
declare function eos(
    stream: Stream,
    callback?: Callback,
): () => void;
declare function eos(
    stream: Stream,
    options: Options,
    callback?: Callback,
): () => void;
declare namespace eos {
}
export = eos;

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Sami Kukkonen](https://github.com/strax).

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