MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / utf8Encode

Function utf8Encode

out/cli.cjs:3464–3466  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

3462 var utf8Encoder = new TextEncoder();
3463 var utf8Decoder = new TextDecoder("utf-8", { ignoreBOM: true });
3464 function utf8Encode(string) {
3465 return utf8Encoder.encode(string);
3466 }
3467 function utf8DecodeWithoutBOM(bytes) {
3468 return utf8Decoder.decode(bytes);
3469 }

Callers 3

percentDecodeStringFunction · 0.85
parseUrlencodedStringFunction · 0.85

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…