💛 You can help the author become a full-time open-source maintainer by sponsoring him on GitHub.
fetch
, axios
and colors
npx tsno run https://egoist.sh/tsno.ts
(experimental)npm i tsno -D
# Or install globally
npm i tsno -g
tsno run script.ts
Supported files: .js
.jsx
.ts
.tsx
.cjs
.mjs
.json
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.
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
.
MIT © EGOIST