MCPcopy Create free account
hub / github.com/p2r3/convert / javascript

Function javascript

src/handlers/textToSource.ts:10–12  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

8}
9
10function javascript(text: string): string {
11 return `console.log(${JSON.stringify(text)});`;
12}
13
14function c(text: string): string {
15 return `#include <stdio.h>\n\nint main() { printf("%s\\n", ${JSON.stringify(text)}); }`;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected