@cspell/cspell-tools
Version:
Tools to assist with the development of cSpell
7 lines • 466 B
TypeScript
type HashAlgorithm = 'SHA1';
export declare function calcChecksum(buf: Buffer, alg?: HashAlgorithm): string;
export declare function checkChecksum(checksum: string, buf: Buffer, alg?: HashAlgorithm): boolean;
export declare function calcFileChecksum(filename: string, alg?: HashAlgorithm): Promise<string>;
export declare function checkFile(checksum: string, filename: string, alg?: HashAlgorithm): Promise<boolean>;
export {};
//# sourceMappingURL=checksum.d.ts.map