MCPcopy
hub / github.com/webpack/webpack / digest

Method digest

lib/util/hash/DebugHash.js:71–73  ·  view source on GitHub ↗

* Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding} * @param {Encoding=} encoding encoding of the return value * @returns {string | Buffer} digest

(encoding)

Source from the content-addressed store, hash-verified

69 * @returns {string | Buffer} digest
70 */
71 digest(encoding) {
72 return Buffer.from(`@webpack-debug-digest@${this.string}`).toString("hex");
73 }
74}
75
76module.exports = DebugHash;

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected