Installation
npm install --save @types/checksum
Summary
This package contains type definitions for checksum (https://github.com/dshaw/checksum).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/checksum.
declare namespace checksum {
interface ChecksumOptions {
algorithm?: string;
encoding?: string;
}
function file(filename: string, callback: (error: Error, hash: string) => void): void;
function file(filename: string, options: ChecksumOptions, callback: (error: Error, hash: string) => void): void;
}
declare function checksum(value: any, options?: checksum.ChecksumOptions): string;
export = checksum;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Rogier Schouten.