Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
220
function
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
rtfEscape
Function · 0.70
Calls
1
toString
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…