- hash<const Options>(file, options?): Promise<Options["algorithm"] extends any[]
? {
[Key in Options["algorithm"][number]]: Options["output"] extends "buffer"
? Buffer
: string
}
: Options["output"] extends "buffer"
? Buffer
: string> Type Parameters
- const Options extends {
algorithm?: ArrayOrNot<string>;
output?: "buffer" | BinaryToTextEncoding;
salt?: string;
}
Parameters
- file: PathLike
Optional
options: Options
Returns Promise<Options["algorithm"] extends any[]
? {
[Key in Options["algorithm"][number]]: Options["output"] extends "buffer"
? Buffer
: string
}
: Options["output"] extends "buffer"
? Buffer
: string>
Hash a File