UNPKG

@pushrocks/smarthash

Version:

simplified access to node hash functions

26 lines (25 loc) 799 B
import * as plugins from './nodehash.plugins.js'; /** * creates sha256 Hash from Stream */ export declare const sha256FromStream: (input: plugins.stream.Stream) => Promise<string>; /** * creates sha256 Hash from File; */ export declare const sha256FromFile: (filePath: string) => Promise<string>; /** * Computes sha256 Hash from String synchronously */ export declare const sha256FromStringSync: (stringArg: string) => string; /** * Computes sha256 Hash from String */ export declare const sha256FromString: (stringArg: string) => Promise<string>; /** * Computes sha256 Hash from String */ export declare const sha256FromBuffer: (bufferArg: Buffer) => Promise<string>; /** * computes sha265 Hash from Object */ export declare const sha265FromObject: (objectArg: any) => Promise<string>;