data-to-md5
v0.0.1
Published
Calculates a MD5 for given data
Downloads
2
Maintainers
Readme
data-to-md5
Calculates a MD5 of a given buffer/string
Install
Using yarn:
yarn add data-to-md5
or using npm:
npm install data-to-md5
Usage
const fs = require('fs')
const dataToMD5 = require('data-to-md5')
const buffer = fs.readFileSync('/path/to/file')
const hash = dataToMD5(buffer)