Skip to content

Commit

Permalink
Use stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Aug 19, 2021
1 parent f6a97d0 commit 55037b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,9 @@ zx https://medv.io/example-script.mjs
zx https://medv.io/game-of-life.mjs
```

#### Executing scripts from STDIN
#### Executing scripts from stdin

The `zx` supports executing scripts from STDIN.
The `zx` supports executing scripts from stdin.

```js
zx <<'EOF'
Expand Down
3 changes: 2 additions & 1 deletion zx.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ function printUsage() {
console.log(
'usage: zx [--quiet] [--shell=<path>]\n' +
' [--prefix=<command>]\n' +
' <script>'
' <script>\n' +
' zx <<< <script>'
)
}

0 comments on commit 55037b3

Please sign in to comment.