esno is a Node.js runtime enhanced with esbuild for loading TypeScript and ESM files. It is an alias for tsx since v0.15, providing automated CJS/ESM mode and caching. Current stable version is 4.8.0. The project is in maintenance mode, with issues redirected to tsx. Key differentiators include zero-config TypeScript execution, esbuild-based transpilation for speed, and seamless CJS/ESM interop. It replaces older tools like ts-node.
npm install esmoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows zero-config TypeScript execution: a simple function with type annotation, run directly via esno CLI.
Use tsx directly for new projects.
Use tsx's conditional exports; esno does not export programmatic API.
Use 'tsx' for programmatic usage or run via CLI with npx.
Run 'npx esno' or install globally: 'npm i -g esno'.