@anio-fs/int--hash-file
v6.0.0
Published
Calculate the checksum of a file.
Downloads
78
Readme
@anio-fs/int--hash-file
Synchronously calculate the checksum of a file.
import {hashFile, hashFileSync} from "@anio-fs/int--hash-file"
console.log(
await hashFile("./examples/example.mjs", "sha256")
)
console.log(
hashFileSync("./examples/example.mjs", "sha1", "base64")
)