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

Function out

scripts/repl.mjs:21–27  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

19 return i.question(q + ': ');
20 },
21 out(value) {
22 if (value.type === 'str') {
23 console.log(chalk.magenta(value.value));
24 } else {
25 console.log(chalk.magenta(valToString(value)));
26 }
27 },
28 err(e) {
29 console.log(chalk.red(`${e}`));
30 },

Callers

nothing calls this directly

Calls 2

valToStringFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected