8.2.0 • Published 5 days ago

zx v8.2.0

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
5 days 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

5 days ago

8.1.6-dev.09d0d04

2 months ago

8.1.6-dev.5d2ad78

2 months ago

8.1.6-dev.ac2567f

2 months ago

8.1.5-dev.92aede5

2 months ago

8.1.5-dev.8c3730e

2 months ago

8.1.6-dev.bff3551

2 months ago

8.1.8

2 months ago

8.1.7

2 months ago

8.1.9

1 month ago

8.1.6

2 months ago

8.1.5

2 months ago

8.1.2-dev.e82f701

5 months ago

8.1.0-dev.01af3d5

6 months ago

8.1.2

5 months ago

8.1.1

6 months ago

8.1.4-dev.a262a21

5 months ago

8.1.2-dev.3931b9d

5 months ago

8.1.3-dev.c1a160c

5 months ago

8.1.3-dev.d6f5493

5 months ago

8.1.4-dev.d7d074d

4 months ago

8.1.0-dev.ae55549

6 months ago

8.1.2-dev.b3fcad2

5 months ago

8.1.4

4 months ago

8.1.3

5 months ago

8.1.0-dev.69e7368

6 months ago

8.1.2-dev.a54c7ff

5 months ago

8.1.2-dev.d8311ce

5 months ago

8.1.0-dev.23fe548

6 months ago

8.1.0

6 months ago

8.0.2-dev.6b1869d

6 months ago

8.0.2-dev.0eb81c9

6 months ago

8.0.2-dev.b6420eb

6 months ago

8.0.2-dev.a3205e1

6 months ago

8.0.2-dev.086b500

6 months ago

8.0.2-dev.1568ca9

6 months ago

8.0.2-dev.bc2a08c

6 months ago

8.0.1-dev.b52bcd9

7 months ago

8.0.2

7 months ago

8.0.1-dev.d397293

7 months ago

8.0.1

7 months ago

8.0.0

7 months ago

7.2.3-dev.0844b88

7 months ago

7.2.3-dev.d79a638

7 months ago

7.2.3-dev.1124e31

7 months ago

7.2.3-dev.b02fd52

7 months ago

7.2.3-dev.2026d4a

7 months ago

7.2.3-dev.def0883

7 months ago

7.2.3-dev.c2cda4a

7 months ago

7.2.3-dev.cafb90d

7 months ago

7.2.3-dev.1d8aa93

8 months ago

7.2.3-dev.7e728f6

8 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

2 years ago

6.2.4

2 years ago

6.2.1

2 years ago

6.2.0

2 years ago

6.2.3

2 years ago

6.2.2

2 years ago

7.0.0

2 years ago

7.0.4

2 years ago

7.0.3

2 years ago

7.0.2

2 years ago

7.0.1

2 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

3 years ago

1.14.1

3 years ago

1.14.0

3 years ago

1.13.0

3 years ago

1.2.0

3 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

3 years ago

1.7.3

3 years ago

1.9.0

3 years ago

1.8.0

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.2.2

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.7.6

3 years ago

1.7.5

3 years ago

1.7.4

3 years ago

1.11.0

3 years ago

1.10.1

3 years ago

1.10.0

3 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