0.0.1 • Published 5 years ago
data-to-hash v0.0.1
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)
0.0.1
5 years ago