Evaluate ClojureScript code from JavaScript
Wraps org.babashka/sci.core/eval-string
npm i eval-cljs
import { evaluate } from "eval-cljs";
let input = `(println "Hello")
(println "World")
(+ 2 2)`;
let [evalOutput, printOutput] = evaluate(input);
console.log(printOutput); // [ 'Hello', 'World' ]
console.log(evalOutput); // 4