rscute
v3.1.1
Published
SWC-powered TypeScript JIT runner for Node.js
Maintainers
Readme
rscute
A lightweight, SWC-powered TypeScript JIT runner for Node.js.
The name comes from RS (Rust, via SWC) + cute (execute) — nimble, lightweight, smart execution. rscute intercepts module imports on-the-fly and compiles TypeScript files on-demand — zero config, zero build step.
Features
- Runs
.ts,.tsx,.cts, and.mtsfiles instantly via a zero-config CLI - Intercepts module resolutions on-the-fly and loads dependencies on-demand
- Resolves
tsconfig.jsonpath mappings automatically - Supports both CJS and ESM projects seamlessly
Quick Start
Installation
npm i -D rscuteNote: If you are using pnpm, run commands using pnpm exec instead of npx.
CLI Execution
npx rscute script.tsProgram
rscute/register
Use the register API to hook TypeScript compilation into Node.js module resolution programmatically.
const { register } = require('rscute/register');
register();
// Now you can require .ts files directly
require('./my-module.ts');License
rscute is MIT licensed.
