Skip to content

Commit c1ca6ea

Browse files
authored
docs(api): document hashDigest etc. (#7405)
1 parent 6faa6c9 commit c1ca6ea

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

src/content/api/loaders.mdx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,38 @@ module.exports = function (source) {
389389
};
390390
```
391391
392+
### this.hashDigest
393+
394+
`string`
395+
396+
<Badge text="5.95.0+" />
397+
398+
The encoding to use when generating the hash. See [output.hashDigest](/configuration/output/#outputhashdigest).
399+
400+
### this.hashDigestLength
401+
402+
`number`
403+
404+
<Badge text="5.95.0+" />
405+
406+
The prefix length of the hash digest to use. See [output.hashDigestLength](/configuration/output/#outputhashdigestlength).
407+
408+
### this.hashFunction
409+
410+
`string` `function`
411+
412+
<Badge text="5.95.0+" />
413+
414+
The hashing algorithm to use. See [output.hashFunction](/configuration/output/#outputhashfunction).
415+
416+
### this.hashSalt
417+
418+
`string`
419+
420+
<Badge text="5.95.0+" />
421+
422+
An optional salt to update the hash via Node.JS' [`hash.update`](https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding). See [output.hashSalt](/configuration/output/#outputhashsalt).
423+
392424
### this.importModule
393425
394426
<Badge text="5.32.0+" />

0 commit comments

Comments
 (0)