MCPcopy Index your code
hub / github.com/nodejs/node / toHex

Function toHex

tools/license2rtf.mjs:221–223  ·  view source on GitHub ↗
(number, length)

Source from the content-addressed store, hash-verified

219
220function rtfEscape(string) {
221 function toHex(number, length) {
222 return (~~number).toString(16).padStart(length, '0');
223 }
224
225 return string
226 .replace(/[\\{}]/g, (m) => `\\${m}`)

Callers 1

rtfEscapeFunction · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…