Skip to content

Commit

Permalink
Add docs about executing scripts from stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Aug 19, 2021
1 parent 27e50bc commit f6a97d0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,16 @@ zx https://medv.io/example-script.mjs
zx https://medv.io/game-of-life.mjs
```

#### Executing scripts from STDIN

The `zx` supports executing scripts from STDIN.

```js
zx <<'EOF'
await $`pwd`
EOF
```

## License

[Apache-2.0](LICENSE)
Expand Down

0 comments on commit f6a97d0

Please sign in to comment.