kokona
TypeScript icon, indicating that this package has built-in type declarations

8.0.2 • Public • Published

kokona

This is a fork version of zx, it used for TypeScript runtime.

Motivation

We often use tsx to execute .ts scripts instead of .js scripts. however, zx v8 bundles everything, and top-level await doesn't work in CJS module scripts. this package solves this issue.

Example

  pnpm i -D kokona
// script.ts

import 'kokona/global'

const run = async () => {
  await $`echo "Hello, World!"`
}

run()
  pnpm tsx script.ts

Package Sidebar

Install

npm i kokona

Weekly Downloads

4

Version

8.0.2

License

Apache-2.0

Unpacked Size

79.5 kB

Total Files

21

Last publish

Collaborators

  • fz6m