MCPcopy
hub / github.com/webpack/webpack / toString

Function toString

lib/util/hash/hash-digest.js:118–124  ·  view source on GitHub ↗
(value, encoding)

Source from the content-addressed store, hash-verified

116 * @returns {string} string
117 */
118const toString = (value, encoding) =>
119 typeof value === "string"
120 ? value
121 : Buffer.from(value.toString(16), "hex").toString(
122 /** @type {NodeJS.BufferEncoding} */
123 (encoding)
124 );
125
126/**
127 * Returns buffer.

Callers 2

digestFunction · 0.85
index.jsFile · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected