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

0.0.1 • Public • Published

data-to-sha1

Calculates a SHA-1 of a given buffer/string

Install

Using yarn:

yarn add data-to-sha1

or using npm:

npm install data-to-sha1

Usage

const fs = require('fs')
const dataToSHA1 = require('data-to-sha1')
 
const buffer = fs.readFileSync('/path/to/file')
 
const hash = dataToSHA1(buffer)

Package Sidebar

Install

npm i data-to-sha1

Weekly Downloads

33

Version

0.0.1

License

MIT

Unpacked Size

1.68 kB

Total Files

6

Last publish

Collaborators

  • dimitarnestorov