Skip to content

goto-bus-stop/shasum-object

Repository files navigation

shasum-object

get the shasum of a buffer or object

it is more or less identical to shasum, but tested on a lot of node.js versions and with smaller, actively maintained dependencies

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

About

get the shasum of a buffer or object

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published