Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

sha1-file

2.0.0 • Public • Published

sha1-file Travis CI Build Status

Get the SHA1 of a file.

NPM Badge

Install

npm install sha1-file

Usage

const sha1File = require("sha1-file");
 
sha1File.sync("file.txt");
//=> "a0b65939670bc2c010f4d5d6a0b3e4e4590fb92b"

API

sha1File(filepath)

Returns a promise for the file hash.

sha1File.sync(filepath)

Returns the file hash.

Install

npm i sha1-file

DownloadsWeekly Downloads

8,684

Version

2.0.0

License

MIT

Unpacked Size

3.25 kB

Total Files

6

Last publish

Collaborators

  • avatar