JS jsling

C++17 JavaScript-like runtime

Download jsling

Install a small Node-style command line runtime for scripts, REPL sessions, and JavaScript language experiments.

Linux/macOS installer Or run: bash <(curl -fsSL /download/unix-source-installer)
$ jsling -e "console.log(1 + 2)"
3

$ jsling
jsling v1.0.0 - JavaScript Runtime (REPL)
>>> const add = (a, b) => a + b
>>> console.log(add(2, 5))
7

Artifacts

Choose your download

Linux and macOS

Local source-tree installer for Unix-like systems.

Download .sh bash scripts/install-local.sh

Source installer

Installer script intended for fetching and building from a Git repository.

Download install.sh bash install.sh --prefix "$HOME/.local"

Local Linux binary

Downloads the currently built Linux binary when it exists on this machine.

Download binary bash COMPILER_CPP/scripts/build.sh

Quick install

Copy a command

The website serves the installer files directly. Download one, then run it from the project directory or keep it beside the source tree.

Windows

powershell -ExecutionPolicy Bypass -File .\scripts\install-windows.ps1 -AddToPath

Linux/macOS (Local script)

cd COMPILER_CPP
bash scripts/install-local.sh

Linux/macOS (Quick curl & bash)

bash <(curl -fsSL /download/unix-source-installer)

Check it

Verify your install

jsling --version
jsling -e "console.log(1 + 2)"

Expected output: jsling v1.0.0 and 3.