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
/// <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 0441 GMT
- Dependencies: @types/node
Credits
These definitions were written by BendingBender.