MCPcopy
hub / github.com/di-sukharev/opencommit / percentEncode

Function percentEncode

out/cli.cjs:3486–3492  ·  view source on GitHub ↗
(c4)

Source from the content-addressed store, hash-verified

3484 return char.codePointAt(0);
3485 }
3486 function percentEncode(c4) {
3487 let hex = c4.toString(16).toUpperCase();
3488 if (hex.length === 1) {
3489 hex = `0${hex}`;
3490 }
3491 return `%${hex}`;
3492 }
3493 function percentDecodeBytes(input) {
3494 const output = new Uint8Array(input.byteLength);
3495 let outputIndex = 0;

Callers 1

Calls 2

toUpperCaseMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…