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

0.0.1 • Public • Published

data-to-hash

Calculates a given hash of a given buffer/string

Install

Using yarn:

yarn add data-to-hash

or using npm:

npm install data-to-hash

Usage

const fs = require('fs')
const dataToHash = require('data-to-hash')
 
const buffer = fs.readFileSync('/path/to/file')
 
const hash = dataToHash('sha256', buffer)

Package Sidebar

Install

npm i data-to-hash

Weekly Downloads

436

Version

0.0.1

License

MIT

Unpacked Size

1.75 kB

Total Files

6

Last publish

Collaborators

  • dimitarnestorov