2
Watch
91
Star
1
Fork
5
Issue

`node` with typescript support, importing from URL, etc.

egoist
egoist
pushedAt 2 weeks ago

egoist/tsno

💛 You can help the author become a full-time open-source maintainer by sponsoring him on GitHub.


tsno

npm version

Features

  • Super duper fast
  • TypeScript support
  • Deno-style URL import, try npx tsno https://egoist.sh/tsno.ts

Install

npm i tsno -D
# Or install globally
npm i tsno -g

Usage

tsno script.ts

Supported files: .js .jsx .ts .tsx .cjs .mjs .json

All node flags are forwarded, i.e. tsno --experimental-wasm-modules script.ts works as expected.

Importing from URL

tsno supports deno-style http import, try:

tsno https://egoist.sh/tsno.ts

You can also use import or require to load modules from an URL.

Sponsors

sponsors

License

MIT © EGOIST

ucloud ads