Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

shasum-object

goto-bus-stop2.7mApache-2.01.0.0

get the shasum of a buffer or object

buffer, hash, object, sha1, shasum

readme

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

changelog

shasum-object change log

All notable changes to this project will be documented in this file.

This project adheres to Semantic Versioning.

1.0.0

  • Initial release.