UNPKG

esmo

Version:

Node.js runtime enhanced with esbuild for loading TypeScript & ESM

50 lines (37 loc) 898 B
<h1 align='center'> <samp>esno</samp> </h1> <p align='center'> <samp>Node.js runtime enhanced with esbuild for loading TypeScript & ESM</samp> <br> <br> <a href='https://www.npmjs.com/package/esno'> <img src='https://img.shields.io/npm/v/esno?color=333&labelColor=555&style=flat-square' alt='version'/> </a> </p> From v0.15, `esno` is essentially an alias of [`tsx`](https://github.com/esbuild-kit/tsx), with automated CJS/ESM mode and caching. > Issues are disabled in this repo, they should be report in [esbuild-kit/tsx](https://github.com/esbuild-kit/tsx) instead. ## Usage ```bash npx esno hello.ts ``` #### Install globally ```bash npm i -g esno esno index.ts ``` #### Install as dependency ```bash npm i esno ``` ```json { "scripts": { "start": "esno index.ts" }, "dependencies": { "esno": "*" } } ``` Learn more at [`tsx`](https://github.com/esbuild-kit/tsx).