# @types/hash-stream

> TypeScript definitions for hash-stream

Latest version **1.2.4** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 65/100 (B)** — status: stable.

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.2.4 |
| Published | 2025-10-24 |
| First published | 2017-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.2.4 (latest) — 2025-10-24
- 1.2.3 (ts5.1) — 2023-11-07
- 1.2.0 (ts3.5) — 2017-08-21
- 1.2.2 — 2023-10-18
- 1.2.1 — 2023-09-16

## README

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

export = hashStream;

declare function hashStream(
    stream: stream.Readable,
    algorithm: string,
    callback?: (error: any, hash: Buffer) => void,
): Promise<Buffer>;
declare function hashStream(
    filename: string,
    algorithm: string,
    callback?: (error: Error | null, hash: Buffer) => void,
): Promise<Buffer>;

````

### Additional Details
 * Last updated: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender).

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