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