npm.io
1.2.4 • Published 11 months ago

@types/hash-stream

Licence
MIT
Version
1.2.4
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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.