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

Package detail

@cloudpss/object-hash

opportunity121MIT0.5.35TypeScript support: included

Opinionated object hash calculation based on the @cloudpss/ubjson encoder.

ubjson, hash, object-hash

readme

@cloudpss/object-hash

Opinionated object hash calculation based on the @cloudpss/ubjson encoder.

API

hash(value: unknown): string

Calculate hash of a JS value.

hashEncoded(value: Uint8Array): string

Calculate hash of a JS value that has been encoded with encode of @cloudpss/ubjson.