https://github.com/ealenn/zx
Docker image of ZX, a tool for writing better scripts
https://github.com/ealenn/zx
bash docker javascript script zx
Last synced: about 1 month ago
JSON representation
Docker image of ZX, a tool for writing better scripts
- Host: GitHub
- URL: https://github.com/ealenn/zx
- Owner: Ealenn
- Created: 2022-11-27T12:44:03.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-27T14:01:48.000Z (over 2 years ago)
- Last Synced: 2025-01-25T00:20:28.684Z (3 months ago)
- Topics: bash, docker, javascript, script, zx
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/ealen/zx
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ZX
[](https://github.com/Ealenn/zx/stargazers)
[](https://github.com/Ealenn/zx/issues)
[](https://hub.docker.com/repository/docker/ealen/zx)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.
Related to https://github.com/google/zx
## Platforms





## Use
```
docker run -it --rm ealen/zx
```### Example
```bash
# From volume
docker run -it --rm -v $PWD:/scripts zx /scripts/xxx.mjs/scripts zx xxx.mjs
``````bash
# From VI
docker run -it --rm -v $PWD:/scripts/scripts vi xxx.mjs
/scripts zx xxx.mjs
```