Get the SHA1 of a file.
npm install sha1-file
import {sha1File} from 'sha1-file';
console.log(await sha1File('file.txt'));
//=> 'a0b65939670bc2c010f4d5d6a0b3e4e4590fb92b'
Returns a promise for the file hash.
Returns the file hash.
Get the SHA1 of a file.
Homepage Repository npm JavaScript Download
npm install sha1-file@3.0.0
Get the SHA1 of a file.
npm install sha1-file
import {sha1File} from 'sha1-file';
console.log(await sha1File('file.txt'));
//=> 'a0b65939670bc2c010f4d5d6a0b3e4e4590fb92b'
Returns a promise for the file hash.
Returns the file hash.