MyGit
🚩收到GitHub仓库的更新通知

google/zx

Fork: 1060 Star: 41720 (更新于 2024-05-01 18:01:14)

license: Apache-2.0

Language: JavaScript .

A tool for writing better scripts

最后发布版本: 8.0.2 ( 2024-04-18 23:29:27)

官方网址 GitHub网址

✨免费申请网站SSL证书,支持多域名和泛域名,点击查看

Zx logo zx

#!/usr/bin/env zx

await $`cat package.json | grep name`

let 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`,
])

let 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-05-01 18:00:59)

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

2023-03-17 16:45:17 7.2.1

2023-02-27 21:43:21 7.2.0

2022-10-08 04:26:14 7.1.1

2022-10-06 04:34:08 7.1.0

2022-08-02 04:35:45 7.0.8

主题(topics):

bash, cli, javascript, nodejs, shell

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

2024-05-15 03:05:45 emberjs/ember.js

2024-05-14 02:29:26 langflow-ai/langflow

2024-05-13 23:31:30 jgraph/drawio-desktop

2024-05-13 08:10:29 jellyfin/jellyfin-web

2024-05-12 01:15:52 jgraph/drawio

2024-05-10 18:58:42 projectdiscovery/nuclei-templates