Fork me on GitHub
#scittle
<
2023-05-22
>
craftybones04:05:30

@borkdude - Am I being delusional or was there a @borkdude/sci package on NPM?

borkdude08:05:43

There used to be a SCI npm package but since SCI has so many options, it wasn't feasible to keep up in the JS interface with this. Instead I recommend people to compile SCI in a way that suits their needs and then publish this to npm. Examples of this are scittle and nbb.

craftybones09:05:02

What is the simplest way for me to do a simple sci.eval("(+ 2 3)") in JS?

borkdude09:05:33

browser or node?

borkdude09:05:10

ok, include scittle inside your browser via a tag or so and then call

scittle.core.eval_string("(+ 1 2 3)")

craftybones09:05:30

Oh, you recently wrote a custom scittle compile example as well right?

craftybones09:05:33

Thanks, I forgot!