MyGit

google/zx

Fork: 1096 Star: 43051 (更新于 2024-10-31 03:46:12)

license: Apache-2.0

Language: JavaScript .

A tool for writing better scripts

最后发布版本: 8.1.4 ( 2024-07-04 18:44:34)

官方网址 GitHub网址

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.

最近版本更新:(数据更新于 2024-08-28 04:04:15)

2024-07-04 18:44:34 8.1.4

2024-06-20 04:53:57 8.1.3

2024-05-28 00:30:23 8.1.2

2024-05-23 18:51:45 8.1.1

2024-05-14 05:05:27 8.1.0

2024-04-18 23:29:27 8.0.2

2024-04-08 14:39:17 8.0.1

2024-04-06 07:27:00 8.0.0

2023-07-06 18:21:34 7.2.3

2023-05-01 23:31:17 7.2.2

主题(topics):

bash, cli, javascript, nodejs, shell

google/zx同语言 JavaScript最近更新仓库

2024-11-21 23:03:24 bia-pain-bache/BPB-Worker-Panel

2024-11-21 22:46:48 MHSanaei/3x-ui

2024-11-21 07:00:59 nodejs/node

2024-11-21 00:49:46 FortAwesome/Font-Awesome

2024-11-18 14:26:02 projectdiscovery/nuclei-templates

2024-11-17 14:42:23 koodo-reader/koodo-reader