Skip to content

Latest commit

 

History

History
128 lines (73 loc) · 2.31 KB

hasher.HasherOptions.md

File metadata and controls

128 lines (73 loc) · 2.31 KB

# Node object hash / hasher / HasherOptions

Interface: HasherOptions

hasher.HasherOptions

Object hasher options

Hierarchy

Table of contents

Properties

Properties

alg

Optional alg: string

Hash algorithm to use

Default

'sha256';

Defined in

hasher.ts:24


coerce

Optional coerce: boolean | CoerceOptions

If true enables type coercion. Advanced coerce options could be provided as object

Default

true;

Inherited from

SorterOptions.coerce

Defined in

objectSorter.ts:170


enc

Optional enc: BinaryToTextEncoding

String encoding for hash

Default

'hex';

Defined in

hasher.ts:29


sort

Optional sort: boolean | SortOptions

If true enables sorting. Advanced sorting options could be provided as object

Default

true;

Inherited from

SorterOptions.sort

Defined in

objectSorter.ts:176


trim

Optional trim: boolean | TrimOptions

If true enables trimming and multiple whitespace replacement. Advanced sorting options could be provided as object.

Default

false;

Inherited from

SorterOptions.trim

Defined in

objectSorter.ts:182