eval-cljs
v0.0.2
Published
Evaluate ClojureScript code from Javascript
Downloads
2
Readme
Eval CLJS
Evaluate ClojureScript code from JavaScript
Wraps org.babashka/sci.core/eval-string
Usage
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