# Node object hash / hasher / HasherOptions
hasher.HasherOptions
Object hasher options
-
↳
HasherOptions
• Optional
alg: string
Hash algorithm to use
Default
'sha256';
• Optional
coerce: boolean
| CoerceOptions
If true
enables type coercion.
Advanced coerce options could be provided as object
Default
true;
• Optional
enc: BinaryToTextEncoding
String encoding for hash
Default
'hex';
• Optional
sort: boolean
| SortOptions
If true
enables sorting.
Advanced sorting options could be provided as object
Default
true;
• Optional
trim: boolean
| TrimOptions
If true
enables trimming and multiple whitespace replacement.
Advanced sorting options could be provided as object.
Default
false;