{"id":13393421,"url":"https://github.com/google/zx","last_synced_at":"2025-05-12T14:55:22.382Z","repository":{"id":37025867,"uuid":"364474335","full_name":"google/zx","owner":"google","description":"A tool for writing better scripts","archived":false,"fork":false,"pushed_at":"2025-05-03T15:29:30.000Z","size":3079,"stargazers_count":44044,"open_issues_count":12,"forks_count":1137,"subscribers_count":158,"default_branch":"main","last_synced_at":"2025-05-05T11:07:25.433Z","etag":null,"topics":["bash","cli","javascript","nodejs","shell"],"latest_commit_sha":null,"homepage":"https://google.github.io/zx/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"antonmedv"}},"created_at":"2021-05-05T05:50:01.000Z","updated_at":"2025-05-05T09:14:33.000Z","dependencies_parsed_at":"2024-01-13T15:36:38.856Z","dependency_job_id":"444854d2-7edf-44df-a1f6-9fcd53485d6d","html_url":"https://github.com/google/zx","commit_stats":{"total_commits":655,"total_committers":54,"mean_commits":12.12962962962963,"dds":"0.43053435114503813","last_synced_commit":"0705aa1d1651c3b84a014fb7f64d08fe7a6ae0ee"},"previous_names":[],"tags_count":89,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fzx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fzx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fzx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fzx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google","download_url":"https://codeload.github.com/google/zx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252486926,"owners_count":21755835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","cli","javascript","nodejs","shell"],"created_at":"2024-07-30T17:00:52.400Z","updated_at":"2025-05-05T12:26:56.570Z","avatar_url":"https://github.com/google.png","language":"JavaScript","readme":"\u003ch1\u003e\u003cimg src=\"https://google.github.io/zx/img/logo.svg\" alt=\"Zx logo\" height=\"32\" valign=\"middle\"\u003e zx\u003c/h1\u003e\n\n```js\n#!/usr/bin/env 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 /tmp/${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. 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```\nComplete installation instructions: [zx/setup](https://google.github.io/zx/setup)\n\n## Documentation\n\nRead documentation on [google.github.io/zx](https://google.github.io/zx/).\n\n## License\n\n[Apache-2.0](LICENSE)\n\nDisclaimer: _This is not an officially supported Google product._\n","funding_links":["https://github.com/sponsors/antonmedv"],"categories":["JavaScript","Packages","HarmonyOS","3. Engineering","Repository","其他","GIT 仓库","Tools","cli","CLIs \u0026 Terminal Tools","shell","目录","Shell","包"],"sub_categories":["Command-line utilities","Windows Manager","3.1. Cli Tools","Shell","网络服务_其他","脚本执行","Node","命令行实用工具"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fzx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle%2Fzx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fzx/lists"}