A Node.js runtime enhanced with esbuild for loading TypeScript and ESM modules. Version 4.8.0 is current and stable, with frequent releases alongside tsx. esno is essentially an alias of tsx (formerly esno was separate, now merged into tsx package). Differentiator: auto CJS/ESM mode detection, seamless TypeScript execution without config, and caching for faster reloads. Suitable for scripts, CLIs, and development servers.
npm install esnoVerified import paths — ran on the pinned version, not inferred.
Run a TypeScript file directly using esno, which transpiles with esbuild and executes with Node.js.
Use tsx package instead for new projects or if you need programmatic API.
Migrate to 'tsx' for future updates and support.
Use 'tsx' package for transform or register hooks in code.
Use node -r esno/register script.ts instead of programmatic require.
Use 'tsx' package: import 'tsx' or use npx tsx.
Use tsx for programmatic usage: import 'tsx'.
Use node -r tsx/register script.ts instead.
Switch to tsx: npm uninstall -g esno && npm install -g tsx