npm.io
0.7.0 • Published 1 year ago

@breadboard-ai/jsandbox

Licence
Apache-2.0
Version
0.7.0
Deps
2
Size
1.2 MB
Vulns
0
Weekly
0
Stars
414

JSandbox

WebAssembly-based JavaScript sandbox using QuickJS.

Building

Install CMAKE:

brew install cmake

Install Rust toolchain:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Add wasm32-wasi target

rustup target add wasm32-wasi
cargo run -p buildscript -- -r

Running the demo

npx http-server -c-1