shasum-object

1.0.0 • Public • Published

shasum-object

get the shasum of a buffer or object

Install - Usage - License: Apache-2.0

npm travis standard

Install

npm install shasum-object

Usage

var fs = require('fs')
var shasum = require('shasum-object')
 
shasum('of a string')
shasum(fs.readFileSync('of-a-file.txt'))
 
shasum({
  of: ['an', 'object']
})

API

shasum(input, algorithm = 'sha1', encoding = 'hex')

Compute the hash for the given input.

License

Apache-2.0

Package Sidebar

Install

npm i shasum-object

Weekly Downloads

885,707

Version

1.0.0

License

Apache-2.0

Unpacked Size

8.61 kB

Total Files

9

Last publish

Collaborators

  • goto-bus-stop