cloudy-node is a TypeScript and ESM runtime for Node.js (>= 14.18) that uses esbuild under the hood to transpile TypeScript on the fly. Current stable version is 0.0.81. It is a fork of esno with a key differentiator: the esbuild target is set to es2022 instead of es2019, avoiding problematic helper generation that breaks Pulumi function serialization and enabling top-level await support (e.g., for AWS Lambda Node.js 14). It provides a CLI command and a Node --loader hook for seamless execution of .ts files. Compared to ts-node or tsx, it is more lightweight and focuses on esbuild speed, but may have fewer features and less community support.
npm install cloudy-nodeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows running a simple TypeScript file using the cloudy-node CLI.
Ensure your entry file has a .ts extension for intended behavior.
Suppress warnings with `--no-warnings` flag if desired.
Use a different tool if you need newer target, or adjust tsconfig.json if applicable.
Check cloudy-node documentation for supported options.
Use `node --loader cloudy-node index.ts` or the `cloudy-node` binary.
Run `npm install cloudy-node` or `yarn add cloudy-node`.
Use `--loader cloudy-node` or set type: module, or use the cloudy-node CLI which handles it automatically.