Skip to content

Commit

Permalink
docs: Add CLI example to packages page
Browse files Browse the repository at this point in the history
  • Loading branch information
the-spyke committed Jul 28, 2020
1 parent be28c4c commit 11851a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ title: Precompiled Packages

Provides a command line interface for processing data with JavaScript and `Undercut` in a shell. Accepts string items from `stdin` and puts results as strings into `stdout`. This package works on Node.js 10.13 and upwards.

```bash
$ cat strings.txt | undercut 'map(s => s.trim())' 'filter(s => s.length > 10)'
Hello world!
A very long string...
```

[Full documentation.](cli/overview)

### `@undercut/node-10`
Expand Down

0 comments on commit 11851a3

Please sign in to comment.