KoichiKiyokawa / zx-lite

A light-weight version of google/zx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zx-lite

A light-weight version of google/zx

codecov

Usage

npm i -D @kiyoshiro/zx-lite

Write your script in .mts file.

// script.mts
import "@kiyoshiro/zx-lite/globals"

// Look. Different from google/zx, you can omit `await`
$`sleep 1`
$`echo Hello, world!`

Run your script.

npx zx script.mts

Features

  • 🔋 Run TS file only with this library(google/zx needs ts-node or other TS runner).

About

A light-weight version of google/zx

License:MIT License


Languages

Language:TypeScript 93.1%Language:Shell 3.6%Language:JavaScript 3.3%