GitXplorerGitXplorer
g

zx

public
43446 stars
1115 forks
14 issues

Commits

List of commits on branch main.
Verified
89d1177e9d8eed496f0f0a65303455ad008f749b

test(core): check $ uses defaults store (#1079)

aantongolub committed 6 days ago
Verified
bf260832f0c8d39015e545f59e8077e92ce768bb

feat(cli): process md for any kind of input (#1078)

aantongolub committed 6 days ago
Verified
49a82c4a956917b00227c83e3617402fa3c1af76

feat: expose `ProcessPromise` stage (#1077)

eeasymikey committed 6 days ago
Verified
437a80f0a21690587d0609aefc5c61f058464e46

fix: timeout signal override (#1075)

aantongolub committed 8 days ago
Verified
a38d47179b9e2687fe7ad6dd37984d3b396e25b4

refactor: avoid redundant buffer to string (#1072)

aantongolub committed 8 days ago
Verified
302e2f78d313d3a0da844e6b6e3dc070311d7695

chore: update yaml to v2.7.0 (#1071)

aantongolub committed 9 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.