2.0.0 • Published 2 years ago

tsno v2.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

💛 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
  • Polyfills for common utilities like fetch, axios and colors
  • Provide an easy way to run shell scripts
  • Top-level await support (Node.js >= v14.8)
  • Deno-style URL import, try npx tsno run https://egoist.sh/tsno.ts (experimental)

Install

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

Usage

tsno run script.ts

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

Importing from URL

tsno supports deno-style http import, try:

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

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

Use with google/zx

Install zx alongside tsno:

npm i tsno zx -D

Then you can import zx in your script:

import { $ } from 'zx'

$`echo "some fancy shell script!"`

Now you can run tsno run your-script.ts.

Sponsors

sponsors

License

MIT © EGOIST

2.0.0

2 years ago

1.6.0

2 years ago

1.3.5

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago