new TextNodeHasher(options)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
options |
Object
|
options containing the hash function to be used, i.e., sha256 |
Methods
hash(the) → {Object}
Finds all text nodes in the given parent node and computes hash value using the text values
- Source:
Parameters:
Name | Type | Description |
---|---|---|
the |
Node
|
parent node |
Returns:
- Type:
-
Object
the hash value prefix with hash function, i.e., sha256-OOvkOPunan07ERTT+O32q2TI4K2jvUvmUe3b4RvT8cI=