1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { runVal } from "https://esm.town/v/std/runVal";
export async function nodejs() {
const token =
(await runVal("easrng.nodejsInternals", {
action: "create",
})) as string;
return async (code) =>
await runVal("easrng.nodejsInternals", {
action: "eval",
token,
code,
});
}