Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

data-to-sha256

0.0.1 • Public • Published

data-to-sha256

Calculates a SHA-256 of a given buffer/string

Install

Using yarn:

yarn add data-to-sha256

or using npm:

npm install data-to-sha256

Usage

const fs = require('fs')
const dataToSHA256 = require('data-to-sha256')
 
const buffer = fs.readFileSync('/path/to/file')
 
const hash = dataToSHA256(buffer)

Install

npm i data-to-sha256

DownloadsWeekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

1.7 kB

Total Files

6

Last publish

Collaborators

  • avatar