Registry / devops / esmo
library4.8.0jsnpmunverified

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 esmo
INSTALL
IMPORT
SIG · ESMO
E
esmo
devopsjavascriptv4.8.0
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 (CLI usage)
npx esno index.ts
npx esno index.js
esno is primarily a CLI tool; no programmatic API is exported.
install as dependency
npm i esno
npm i -g esno
Global install is for command-line use; local install is for scripting.

Shows zero-config TypeScript execution: a simple function with type annotation, run directly via esno CLI.

// First install: npm i -g esno // Create hello.ts export function greet(name: string): string { return `Hello, ${name}!`; } console.log(greet('World')); // Run with: // esno hello.ts
tsx --version
Debug
Known issues
deprecatedesno v0.15+ is now an alias of tsx; standalone esno is deprecated.
fix
Use tsx directly for new projects.
affects: >=0.15
breakingIncorrect import path for commonjs usage
fix
Use tsx's conditional exports; esno does not export programmatic API.
affects: >=3.0
Errors
Common errors & fixes
Cannot find module 'esno'
esno is only a CLI; no programmatic module exports.
fix
Use 'tsx' for programmatic usage or run via CLI with npx.
esno: command not found
esno not installed globally or locally.
fix
Run 'npx esno' or install globally: 'npm i -g esno'.
Upgrade
Version history
4.8.0latest on npm
Audit
Dependencies
tsxrequiredesno is an alias of tsx; all functionality depends on tsx.
Agent activity
6 hits · last 30 days
node
6
Resources
esmo — npm install esmo · libregistry