Miss any of our Open RFC calls?Watch the recordings here! »

data-to-hash

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)

Install

npm i data-to-hash

DownloadsWeekly Downloads

1,252

Version

0.0.1

License

MIT

Unpacked Size

1.75 kB

Total Files

6

Last publish

Collaborators

  • avatar