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)

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i data-to-hash

      Weekly Downloads

      320

      Version

      0.0.1

      License

      MIT

      Unpacked Size

      1.75 kB

      Total Files

      6

      Last publish

      Collaborators

      • dimitarnestorov