MCPcopy Index your code
hub / github.com/VSpaceCode/VSpaceCode / wrapCode

Function wrapCode

scripts/keybindings.js:31–37  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

29}
30
31function wrapCode(text) {
32 if (text && text.length > 0) {
33 return `<code>${text.replace(/\`/g, "\\`")}</code>`;
34 }
35
36 return text;
37}
38
39const package = JSON.parse(fs.readFileSync("./package.json"));
40const defaultBindings =

Callers 1

keybindings.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected