0.0.1 • Published 5 years ago

data-to-hash v0.0.1

Weekly downloads
2,690
License
MIT
Repository
github
Last release
5 years ago

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)