Skip to content

Files

Latest commit

ed67293 · Dec 17, 2024

History

History
96 lines (54 loc) · 1.67 KB
·

hasher.Hasher.md

File metadata and controls

96 lines (54 loc) · 1.67 KB
·

# Node object hash / hasher / Hasher

Interface: Hasher<T>

hasher.Hasher

Type parameters

Name Type
T unknown

Table of contents

Methods

Methods

hash

hash(object, opts?): string

Create hash of an object

Parameters

Name Type Description
object Hashable | T source object
opts? HasherOptions -

Returns

string

hash string of an object

Defined in

hasher.ts:47


sort

sort(object): string

Create sorted string from an object

Parameters

Name Type Description
object T source object

Returns

string

sorted string from an object

Defined in

hasher.ts:53


sortObject

sortObject(object): string

Create sorted string from an object

Alias

sort

Parameters

Name Type Description
object T source object

Returns

string

sorted string from an object

Defined in

hasher.ts:60