Skip to content

Evaluate ClojureScript code from JavaScript

License

Notifications You must be signed in to change notification settings

thiagooak/eval-cljs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eval CLJS

Evaluate ClojureScript code from JavaScript

Wraps org.babashka/sci.core/eval-string

Usage

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

About

Evaluate ClojureScript code from JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published