- hash<const Options>(url, options?, fetch?): 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
- url: string
Optional
options: OptionsOptional
fetch: RequestInit
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