sha1-file
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

sha1-file

Get the SHA1 of a file.

Install

npm install sha1-file

Usage

import {sha1File} from 'sha1-file';

console.log(await sha1File('file.txt'));
//=> 'a0b65939670bc2c010f4d5d6a0b3e4e4590fb92b'

API

sha1File(filepath)

Returns a promise for the file hash.

sha1FileSync(filepath)

Returns the file hash.

/sha1-file/

    Package Sidebar

    Install

    npm i sha1-file

    Weekly Downloads

    61,246

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    3.02 kB

    Total Files

    5

    Last publish

    Collaborators

    • roryrjb
    • richienb