Install
npm, pnpm, yarn or bun
Section titled “npm, pnpm, yarn or bun”Add it as a development dependency:
npm install --save-dev jscyclesnpx jscyclesThe 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.
GitHub releases
Section titled “GitHub releases”The same binaries are attached to each
GitHub release, together
with a SHA256SUMS file:
version=v0.2.0base=https://github.com/ALMaclaine/jscycles/releases/download/$versioncurl -sSfLO "$base/jscycles-linux-x86_64"curl -sSfLO "$base/SHA256SUMS"sha256sum --check --ignore-missing SHA256SUMSchmod +x jscycles-linux-x86_64With a Rust toolchain (1.93 or newer):
cargo install jscycles --lockedFrom a checkout: cargo install --path . --locked.
Next: quick start.