Skip to content

Install

Add it as a development dependency:

Terminal window
npm install --save-dev jscycles
npx jscycles

The jscycles package runs a prebuilt native binary. npm picks the one for your platform from optional dependencies, and nothing runs at install time. Builds exist for:

Platform Architectures
Linux x86-64, ARM64 (statically linked, so any distribution, including Alpine)
macOS Intel, Apple Silicon
Windows x86-64

On another platform, install with Cargo (below) and point the npm launcher at the binary with JSCYCLES_BINARY=/path/to/jscycles, or run it directly.

The same binaries are attached to each GitHub release, together with a SHA256SUMS file:

Terminal window
version=v0.2.0
base=https://github.com/ALMaclaine/jscycles/releases/download/$version
curl -sSfLO "$base/jscycles-linux-x86_64"
curl -sSfLO "$base/SHA256SUMS"
sha256sum --check --ignore-missing SHA256SUMS
chmod +x jscycles-linux-x86_64

With a Rust toolchain (1.93 or newer):

Terminal window
cargo install jscycles --locked

From a checkout: cargo install --path . --locked.

Next: quick start.