GitXplorerGitXplorer
g

zx

public
43446 stars
1115 forks
14 issues

Commits

List of commits on branch main.
Verified
4424de7affd1b3c2e3fd57bd8ebd91b0bb495d45

style: use `trimEnd()` instead of regexp replace (#1070)

aantongolub committed 10 days ago
Verified
d931d9049d6c2f4465cada2e6f27bd9df34cf29d

style(util): improve `formatCmd` (#1069)

aantongolub committed 10 days ago
Verified
828c7ebf75ea61ba8be4ad10e6b26ea74ecd7fbb

refactor(cli): optimize md parser (#1068)

aantongolub committed 10 days ago
Verified
3798607d9ad070c359437eacfe370bdd6476d666

ci: apply zizmor suggestions (#1067)

aantongolub committed 10 days ago
Verified
73347aceeb82f07a8e7c0d1661fca3564454c97c

feat: make `nothrow()` toggleable (#1066)

aantongolub committed 10 days ago
Verified
53718a793325daff5bda6fe2b09ceb8a41cde23f

feat: handle `ZX_REPL_HISTORY` envvar (#1065)

aantongolub committed 11 days ago

README

The README file for this repository.

Zx logo zx

#!/usr/bin/env zx

await $`cat package.json | grep name`

const branch = await $`git branch --show-current`
await $`dep deploy --branch=${branch}`

await Promise.all([
  $`sleep 1; echo 1`,
  $`sleep 2; echo 2`,
  $`sleep 3; echo 3`,
])

const name = 'foo bar'
await $`mkdir /tmp/${name}`

Bash is great, but when it comes to writing more complex scripts, many people prefer a more convenient programming language. JavaScript is a perfect choice, but the Node.js standard library requires additional hassle before using. The zx package provides useful wrappers around child_process, escapes arguments and gives sensible defaults.

Install

npm install zx

Documentation

Read documentation on google.github.io/zx.

License

Apache-2.0

Disclaimer: This is not an officially supported Google product.