sensordb2 e64a8defe5 3.17 1 سال پیش
..
test e64a8defe5 3.17 1 سال پیش
.travis.yml e64a8defe5 3.17 1 سال پیش
CHANGELOG.md e64a8defe5 3.17 1 سال پیش
CODE_OF_CONDUCT.md e64a8defe5 3.17 1 سال پیش
LICENSE.md e64a8defe5 3.17 1 سال پیش
README.md e64a8defe5 3.17 1 سال پیش
bin.js e64a8defe5 3.17 1 سال پیش
index.js e64a8defe5 3.17 1 سال پیش
package.json e64a8defe5 3.17 1 سال پیش

README.md

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