@types/hash-stream
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

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 * as stream from "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: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/node

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/hash-stream

Weekly Downloads

184

Version

1.2.3

License

MIT

Unpacked Size

3.45 kB

Total Files

5

Last publish

Collaborators

  • types