8.2.0 • Published 2 months ago

zx v8.2.0

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
2 months ago
#!/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.

8.2.0

2 months ago

8.2.0-dev.6eb540f

2 months ago

8.2.0-dev.7ffb44e

2 months ago

8.1.9-dev.c38363f

2 months ago

8.1.6-dev.09d0d04

4 months ago

8.1.6-dev.5d2ad78

4 months ago

8.1.6-dev.ac2567f

3 months ago

8.1.5-dev.92aede5

4 months ago

8.1.5-dev.8c3730e

4 months ago

8.1.6-dev.bff3551

3 months ago

8.1.8

3 months ago

8.1.7

3 months ago

8.1.9

3 months ago

8.1.6

3 months ago

8.1.5

4 months ago

8.1.8-dev.88a545a

3 months ago

8.1.2-dev.e82f701

7 months ago

8.1.0-dev.01af3d5

7 months ago

8.1.2

7 months ago

8.1.1

7 months ago

8.1.4-dev.a262a21

6 months ago

8.1.2-dev.3931b9d

6 months ago

8.1.3-dev.c1a160c

6 months ago

8.1.3-dev.d6f5493

6 months ago

8.1.4-dev.d7d074d

6 months ago

8.1.0-dev.ae55549

7 months ago

8.1.2-dev.b3fcad2

7 months ago

8.1.4

6 months ago

8.1.3

6 months ago

8.1.0-dev.69e7368

7 months ago

8.1.2-dev.a54c7ff

7 months ago

8.1.2-dev.d8311ce

7 months ago

8.1.0-dev.23fe548

7 months ago

8.1.0

7 months ago

8.0.2-dev.6b1869d

7 months ago

8.0.2-dev.0eb81c9

8 months ago

8.0.2-dev.b6420eb

8 months ago

8.0.2-dev.a3205e1

8 months ago

8.0.2-dev.086b500

8 months ago

8.0.2-dev.1568ca9

8 months ago

8.0.2-dev.bc2a08c

8 months ago

8.0.1-dev.b52bcd9

8 months ago

8.0.2

8 months ago

8.0.1-dev.d397293

8 months ago

8.0.1

9 months ago

8.0.0

9 months ago

7.2.3-dev.0844b88

9 months ago

7.2.3-dev.d79a638

9 months ago

7.2.3-dev.1124e31

9 months ago

7.2.3-dev.b02fd52

9 months ago

7.2.3-dev.2026d4a

9 months ago

7.2.3-dev.def0883

9 months ago

7.2.3-dev.c2cda4a

9 months ago

7.2.3-dev.cafb90d

9 months ago

7.2.3-dev.1d8aa93

9 months ago

7.2.3-dev.7e728f6

10 months ago

7.2.3

1 year ago

7.2.2

2 years ago

7.2.1

2 years ago

7.2.0

2 years ago

7.1.1

2 years ago

7.1.0

2 years ago

7.1.0-dev.862401

2 years ago

7.0.8

2 years ago

7.0.7

2 years ago

7.0.6

2 years ago

7.0.5

2 years ago

6.2.5

3 years ago

6.2.4

3 years ago

6.2.1

3 years ago

6.2.0

3 years ago

6.2.3

3 years ago

6.2.2

3 years ago

7.0.0

3 years ago

7.0.4

2 years ago

7.0.3

2 years ago

7.0.2

3 years ago

7.0.1

3 years ago

5.3.0

3 years ago

6.1.0

3 years ago

6.0.7

3 years ago

6.0.6

3 years ago

6.0.1

3 years ago

6.0.0

3 years ago

6.0.3

3 years ago

6.0.5

3 years ago

6.0.4

3 years ago

5.2.0

3 years ago

5.1.0

3 years ago

5.0.0

3 years ago

4.3.0

3 years ago

4.2.0

3 years ago

4.1.0

3 years ago

4.1.1

3 years ago

4.0.0

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.15.2

3 years ago

1.15.1

3 years ago

1.14.2

4 years ago

1.14.1

4 years ago

1.14.0

4 years ago

1.13.0

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.0.2

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.12.0

4 years ago

1.7.3

4 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.2.2

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.7.6

4 years ago

1.7.5

4 years ago

1.7.4

4 years ago

1.11.0

4 years ago

1.10.1

4 years ago

1.10.0

4 years ago

1.0.0

7 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.0.0

9 years ago

0.1.0

11 years ago