MCPcopy
hub / github.com/webpack/webpack / toBuffer

Function toBuffer

lib/util/hash/hash-digest.js:131–132  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

129 * @returns {Buffer} buffer
130 */
131const toBuffer = (value) =>
132 Buffer.isBuffer(value) ? value : Buffer.from(value.toString(16), "hex");
133
134let isBase64URLSupported = false;
135

Callers 1

digestFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected