shasum-object

WebJar for shasum-object

License

License

GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

shasum-object
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

shasum-object
WebJar for shasum-object
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/goto-bus-stop/shasum-object

Download shasum-object

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/shasum-object/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>shasum-object</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/shasum-object/
implementation 'org.webjars.npm:shasum-object:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/shasum-object/
implementation ("org.webjars.npm:shasum-object:1.0.0")
'org.webjars.npm:shasum-object:jar:1.0.0'
<dependency org="org.webjars.npm" name="shasum-object" rev="1.0.0">
  <artifact name="shasum-object" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='shasum-object', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "shasum-object" % "1.0.0"
[org.webjars.npm/shasum-object "1.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : fast-safe-stringify jar [2.0.7,3)

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.0