You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/configuration/output.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -236,8 +236,16 @@ The prefix length of the hash digest to use, defaults to `20`.
236
236
237
237
## `output.hashFunction`
238
238
239
+
`string|function`
240
+
239
241
The hashing algorithm to use, defaults to `'md5'`. All functions from Node.JS' [`crypto.createHash`](https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm) are supported.
242
+
Since v4.0.0-alpha2 `hashFunction` can now be a constructor to a custom hash function. You can provide a non-crypto hash function for performance reasons.
243
+
244
+
```js
245
+
hashFunction:require('metrohash').MetroHash64
246
+
```
240
247
248
+
Make sure that hashing function will have `update` and `digest` methods available.
0 commit comments