{"id":25541,"library":"esmo","title":"esno","description":"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.","status":"maintenance","version":"4.8.0","language":"javascript","source_language":"en","source_url":"https://github.com/esbuild-kit/esno","tags":["javascript"],"install":[{"cmd":"npm install esmo","lang":"bash","label":"npm"},{"cmd":"yarn add esmo","lang":"bash","label":"yarn"},{"cmd":"pnpm add esmo","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"esno is an alias of tsx; all functionality depends on tsx.","package":"tsx","optional":false}],"imports":[{"note":"esno is primarily a CLI tool; no programmatic API is exported.","wrong":"npx esno index.js","symbol":"default (CLI usage)","correct":"npx esno index.ts"},{"note":"Global install is for command-line use; local install is for scripting.","wrong":"npm i -g esno","symbol":"install as dependency","correct":"npm i esno"}],"quickstart":{"code":"// First install: npm i -g esno\n// Create hello.ts\nexport function greet(name: string): string {\n  return `Hello, ${name}!`;\n}\nconsole.log(greet('World'));\n\n// Run with:\n// esno hello.ts\n","lang":"typescript","description":"Shows zero-config TypeScript execution: a simple function with type annotation, run directly via esno CLI."},"warnings":[{"fix":"Use tsx directly for new projects.","message":"esno v0.15+ is now an alias of tsx; standalone esno is deprecated.","severity":"deprecated","affected_versions":">=0.15"},{"fix":"Use tsx's conditional exports; esno does not export programmatic API.","message":"Incorrect import path for commonjs usage","severity":"breaking","affected_versions":">=3.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'tsx' for programmatic usage or run via CLI with npx.","cause":"esno is only a CLI; no programmatic module exports.","error":"Cannot find module 'esno'"},{"fix":"Run 'npx esno' or install globally: 'npm i -g esno'.","cause":"esno not installed globally or locally.","error":"esno: command not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}