Skip to content

Add support for easy shell based execution.

Max Rydahl Andersen requested to merge maxandersen/fluent-process:shell into master

Introduces /shell, pipeShell,pipe and as$ builder to make it easy to just run "echo hello; wc -c".

Example:

$("echo hello; echo world")
                        .pipe$("cat")

this is more of an experiment as I'm really looking for a nice way to have a fluent/stream based process api that also can handle shells.

the syntax/setup is inspired by https://github.com/google/zx - fully understand if you feel it is taking the api too far but wanted to show it and see what you think about it.

Merge request reports