sci

nicklawls 2023-06-25T22:52:34.818329Z

Hello 👋 Is there a way to call sci from a JavaScript program? My googling turned up the sci.impl.js namespace but not how to call its exports from JS

mkvlr 2023-06-26T05:53:21.875859Z

there is, see for example https://observablehq.com/@jeroenvandijk/untitled/5

borkdude 2023-06-26T06:56:34.434739Z

the @borkdude/sci package no longer exists and there is no SCI npm package on npm. The reason is that the options and ways to control SCI are pretty elaborate and to maintain a JS interface around this is pretty tedious. I recommend just compiling your own SCI-based lib and publish that to NPM. Examples of this are #scittle, #nbb, etc

👍 1
borkdude 2023-06-26T06:59:00.394329Z

E.g. scittle exports scittle.core.eval_string that you can use to evaluate a string

borkdude 2023-06-26T06:59:04.170669Z

nbb also has a JS API

borkdude 2023-06-26T06:59:12.218789Z

scittle = browser, nbb = node.js

nicklawls 2023-06-26T18:19:44.870399Z

Sweet, thanks for the tips! And for sci!

👍 1