Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
131
const
toBuffer = (value) =>
132
Buffer.isBuffer(value) ? value : Buffer.from(value.toString(16),
"hex"
);
133
134
let
isBase64URLSupported = false;
135
Callers
1
digest
Function · 0.85
Calls
1
toString
Method · 0.45
Tested by
no test coverage detected