An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# ZX

[![GitHub stars](https://img.shields.io/github/stars/Ealenn/zx?style=for-the-badge&logo=github)](https://github.com/Ealenn/zx/stargazers)
[![GitHub issues](https://img.shields.io/github/issues/Ealenn/zx?style=for-the-badge&logo=github)](https://github.com/Ealenn/zx/issues)
[![DockerHub](https://img.shields.io/docker/pulls/ealen/zx.svg?style=for-the-badge&logo=docker)](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

![](https://img.shields.io/badge/linux-amd64-blue?style=flat-square&logo=docker)
![](https://img.shields.io/badge/linux-arm.v6-blue?style=flat-square&logo=docker)
![](https://img.shields.io/badge/linux-arm.v7-blue?style=flat-square&logo=docker)
![](https://img.shields.io/badge/linux-arm64.v8-blue?style=flat-square&logo=docker)
![](https://img.shields.io/badge/linux-ppc64le-blue?style=flat-square&logo=docker)
![](https://img.shields.io/badge/linux-s390x-blue?style=flat-square&logo=docker)

## 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
```