Skip to content

Commit

Permalink
docs(api): document hashDigest etc. (#7405)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxsan authored Sep 26, 2024
1 parent 6faa6c9 commit c1ca6ea
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/content/api/loaders.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,38 @@ module.exports = function (source) {
};
```
### this.hashDigest
`string`
<Badge text="5.95.0+" />
The encoding to use when generating the hash. See [output.hashDigest](/configuration/output/#outputhashdigest).
### this.hashDigestLength
`number`
<Badge text="5.95.0+" />
The prefix length of the hash digest to use. See [output.hashDigestLength](/configuration/output/#outputhashdigestlength).
### this.hashFunction
`string` `function`
<Badge text="5.95.0+" />
The hashing algorithm to use. See [output.hashFunction](/configuration/output/#outputhashfunction).
### this.hashSalt
`string`
<Badge text="5.95.0+" />
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).
### this.importModule
<Badge text="5.32.0+" />
Expand Down

0 comments on commit c1ca6ea

Please sign in to comment.