MCPcopy Create free account
hub / github.com/aiscript-dev/aiscript / log

Function log

scripts/repl.mjs:31–36  ·  view source on GitHub ↗
(type, params)

Source from the content-addressed store, hash-verified

29 console.log(chalk.red(`${e}`));
30 },
31 log(type, params) {
32 switch (type) {
33 case 'end': console.log(chalk.gray(`< ${valToString(params.val, true)}`)); break;
34 default: break;
35 }
36 }
37});
38
39async function getAst() {

Callers

nothing calls this directly

Calls 2

valToStringFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected