Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(api): document hashDigest etc. #7405

Merged
merged 3 commits into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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