Registry / devops / tsr-node

tsr-node

JSON →
library0.1.1jsnpmunverified

A minimal TypeScript runner for Node.js (version 0.1.1), built on esbuild for fast transpilation. Unlike ts-node which uses the TypeScript compiler (tsc), tsr leverages esbuild's speed for instant execution. Ideal for quick scripts and development, but lacks type-checking. Release cadence is unknown.

npm install tsr-node
INSTALL
IMPORT
SIG · TSR-NODE
T
tsr-node
devopsjavascriptv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import {} from 'tsr-node'
const tsr = require('tsr-node')
CLI tool; no programmatic API. Used via command line.

Install the CLI globally and run a TypeScript file directly.

# install npm i -g tsr-node # create a file echo 'const greet = (name: string) => `Hello, ${name}!`; console.log(greet("World"));' > hello.ts # run tsr hello.ts
tsr --version
Debug
Known issues
gotchaNo type-checking at runtime
fix
Run `tsc --noEmit` separately for type checks.
affects: all
gotchaUses esbuild, which may not support all TypeScript features like decorators or const enums
fix
Check esbuild's compatibility for your features.
affects: all
gotchaGlobal install may conflict with other Node.js tools
fix
Use `npx tsr-node hello.ts` to avoid global installation.
affects: all
Errors
Common errors & fixes
tsr: command not found
Package not installed or not in PATH
fix
Run `npm i -g tsr-node`.
Error: Cannot find module 'esbuild'
Missing esbuild dependency (it's a peer dependency?)
fix
Install esbuild: `npm i -g esbuild` or reinstall tsr-node.
Upgrade
Version history
0.1.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources