pretty-hash

WebJar for pretty-hash

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

pretty-hash
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

pretty-hash
WebJar for pretty-hash
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/pfrazee/pretty-hash

Download pretty-hash

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

pretty-hash

Output binary buffers as a nice shortened hex string

var prettyHash = require('pretty-hash')
var crypto = require('crypto')

prettyHash(crypto.randomBytes(32)) // => '0b0a97..f3'
prettyHash(crypto.randomBytes(16)) // => '0b0395..8a'
prettyHash(crypto.randomBytes(4)) // => '49ab09ed'
prettyHash(crypto.randomBytes(1)) // => 'f8'

Versions

Version
1.0.1