@tishlang/tish
v1.0.29
Published
Tish - minimal TS/JS-compatible language. Run, REPL, compile to native.
Downloads
2,027
Maintainers
Readme
@tishlang/tish
Tish is a minimal TypeScript/JavaScript–compatible language: run with an interpreter, use a REPL, or compile to native binaries.
This npm package ships the Tish CLI for Node.js 22+. It includes platform-specific native binaries; the tish command picks the right one for your OS and CPU.
Install
npm install @tishlang/tishOr run without installing:
npx @tishlang/tish --helpQuick start
Run a .tish file (shorthand: first argument is treated as a file → run):
npx @tishlang/tish hello.tish
npx @tishlang/tish run src/main.tishCompile to a native executable:
npx @tishlang/tish compile app.tish -o app
./appNative compilation uses the Rust backend by default (requires Rust and cargo on your PATH). The package includes the Tish workspace source (Cargo.toml, crates/, justfile) so tish compile can run cargo build for your program. For pure Tish without native imports, use --native-backend cranelift (no Rust toolchain needed).
Start the REPL:
npx @tishlang/tish replSupported platforms
Prebuilt binaries are included for:
darwin-arm64,darwin-x64linux-x64,linux-arm64win32-x64
If your platform is missing, build from source.
Documentation
- Repository: https://github.com/tishlang/tish
- User docs: https://github.com/tishlang/tish-docs
Scaffold a project
npx @tishlang/create-tish-app my-appLicense
See the Tish repository LICENSE (Pay It Forward).
