otterjs

Crates.iootterjs
lib.rsotterjs
version0.1.2
created_at2026-01-15 15:11:38.059468+00
updated_at2026-01-16 06:43:58.749635+00
descriptionOtter CLI - A fast TypeScript/JavaScript runtime
homepagehttps://github.com/octofhir/otter
repositoryhttps://github.com/octofhir/otter
max_upload_size
id2045792
size183,832
Alexander Streltsov (octoshikari)

documentation

README

otterjs

A fast TypeScript/JavaScript runtime CLI.

Installation

cargo install otterjs

Usage

# Run a script directly
otter script.ts
otter script.js

# Or with the run command
otter run script.ts
otter run script.ts --watch
otter run script.ts --timeout 5000

Commands

Command Description
run <file> Execute a TypeScript or JavaScript file
check <file> Type check TypeScript files
test Run tests
repl Start interactive REPL
install Install dependencies from package.json
add <package> Add a dependency
remove <package> Remove a dependency
init Initialize a new project
info Show runtime information

Examples

# Run with watch mode
otter run src/index.ts --watch

# Type check
otter check src/**/*.ts

# Run tests
otter test

# Start REPL
otter repl

# Package management
otter init
otter add lodash
otter install
otter remove lodash

License

MIT

Commit count: 0

cargo fmt