file-to-sha512
Calculates a SHA-512 of a given file
Install
Using yarn:
yarn add file-to-sha512
or using npm:
npm install file-to-sha512
Usage in the browser
const hash = await
Usage in node
For file paths
const pathToSHA512 = const hash = await
For buffers or strings
const fs = const dataToSHA512 = const buffer = fs const hash =