[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-916":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":16,"starSnapshotCount":16,"syncStatus":39,"lastSyncTime":40,"discoverSource":41},916,"zx","google\u002Fzx","google","A tool for writing better scripts","https:\u002F\u002Fgoogle.github.io\u002Fzx\u002F",null,"JavaScript",45529,1268,158,22,0,5,14,57,16,44.31,"Apache License 2.0",false,"main",true,[27,28,29,30,31,32,33,34,35],"bash","child-process","cli","exec","javascript","nodejs","pipe","shell","spawn","2026-06-12 02:00:20","\u003Ch1>\u003Cimg src=\"https:\u002F\u002Fgoogle.github.io\u002Fzx\u002Fimg\u002Flogo.svg\" alt=\"Zx logo\" height=\"32\" width=\"28\" valign=\"middle\"> zx\u003C\u002Fh1>\n\n```js\n#!\u002Fusr\u002Fbin\u002Fenv zx\n\nawait $`cat package.json | grep name`\n\nconst branch = await $`git branch --show-current`\nawait $`dep deploy --branch=${branch}`\n\nawait Promise.all([\n  $`sleep 1; echo 1`,\n  $`sleep 2; echo 2`,\n  $`sleep 3; echo 3`,\n])\n\nconst name = 'foo bar'\nawait $`mkdir \u002Ftmp\u002F${name}`\n```\n\nBash is great, but when it comes to writing more complex scripts,\nmany people prefer a more convenient programming language.\nJavaScript is a perfect choice, but the Node.js standard library\nrequires additional hassle before using. No compromise, take the best of both. The `zx` package provides\nuseful cross-platform wrappers around `child_process`, escapes arguments and\ngives sensible defaults.\n\n## Install\n\n```bash\nnpm install zx\n```\nAll setup options: [zx\u002Fsetup](https:\u002F\u002Fgoogle.github.io\u002Fzx\u002Fsetup).\nSee also [**zx@lite**](https:\u002F\u002Fgoogle.github.io\u002Fzx\u002Flite).\n\n## Usage\n\n* [Documentation at google.github.io\u002Fzx\u002F](https:\u002F\u002Fgoogle.github.io\u002Fzx\u002F)\n* [Code examples](https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fzx\u002Ftree\u002Fmain\u002Fexamples)\n\n## Compatibility\n* Linux, macOS, or Windows\n* JavaScript Runtime:\n    * Node.js >= 12.17.0\n    * Bun >= 1.0.0\n    * Deno 1.x, 2.x\n    * GraalVM Node.js\n* Some kind of [bash or PowerShell](https:\u002F\u002Fgoogle.github.io\u002Fzx\u002Fshell)\n* [Both CJS or ESM](https:\u002F\u002Fgoogle.github.io\u002Fzx\u002Fsetup#hybrid) modules in [JS or TS](https:\u002F\u002Fgoogle.github.io\u002Fzx\u002Ftypescript)\n\n\n## See also\n\n- 🔥 [crow.watch](https:\u002F\u002Fcrow.watch) — a computing-focused community, link aggregation and discussion, [join](http:\u002F\u002Fcrow.watch\u002Fjoin\u002Fzx).\n\n## License\n\n[Apache-2.0](LICENSE)\n\nDisclaimer: _This is not an officially supported Google product._\n","google\u002Fzx 是一个用于编写更优脚本的工具。它通过提供跨平台的 `child_process` 包装器，自动转义参数，并设置合理的默认值，简化了使用 JavaScript 编写复杂脚本的过程。核心功能包括支持 Promise 的命令执行、方便的变量插入和强大的并发处理能力。适合于需要超越基础 Bash 脚本功能但又不想直接面对 Node.js 标准库复杂性的场景，如自动化部署、持续集成等任务。此外，zx 支持多种操作系统（Linux, macOS, Windows）及不同的 JavaScript 运行环境（Node.js, Bun, Deno, GraalVM），并兼容 CJS 和 ESM 模块系统。",2,"2026-06-11 02:40:15","top_all"]