https://github.com/serapath/wireup
run and wire up multiple processes
https://github.com/serapath/wireup
Last synced: 5 months ago
JSON representation
run and wire up multiple processes
- Host: GitHub
- URL: https://github.com/serapath/wireup
- Owner: serapath
- License: mit
- Created: 2017-03-17T20:58:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-17T21:51:43.000Z (over 9 years ago)
- Last Synced: 2025-09-29T09:17:35.982Z (9 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wireup
run and wire up multiple processes
# cli usage
`x | wireup ... [--wireup ...] | y`
## details
* =
`x | wireup -p -s -p | y`
* i=wireup.stdin, o=wireup.stdout, e=wireup.stderrm -p=parallel, -s=serial
* -i // by default input is ignored; if set, pipes stdin to flaged processes
* -o // by default all output goes to `y`; if set pipes flagged process output to stdout
* -e // by default all output goes to `y`; if set pipes flagges process errors to stderr
* if -o is manually set, all non-set output by default goes to dev/null
* pX // by default no params or env vars are set
## examples
```
# x1: echo "hello world"
# x2: tr '[a-zA-Z]' '[A-Za-z]'
# x3: ....
```
```
x | wireup
-p
-p
-s
-s
-p
-s
--wireup
i:1+3
1:2
2:3
g1.o
g1.e
g1.&
>o
>e
>oe
| y
```
# node api usage
```js
var wireup = require('wireup')
```