0.0.7 • Published 10 years ago

make-pipe v0.0.7

Weekly downloads
2
License
GPL-3.0
Repository
github
Last release
10 years ago

make-pipe

Makes pipes easier to use in makefiles by quitting and returning a nonzero exit status if any of the constituent commands return nonzero.

Usage

Replace where you'd put a pipe with a string containing only the pipe character.

make-pipe echo 'heya' '|' cat '|' grep -Eo '[ea]'
# outputs:
# e
# a

If you want to pipe data into make-pipe, set the environment variable LISTEN. This can be useful for handing off a pipeline you don't control into your own pipeline which will fail if any of its constituent commands fails.

echo hey | LISTEN=y make-pipe cat '|' cat
# outputs:
# hey

Install

npm install -g make-pipe

Examples

This was made for use in a bioinformatics project.

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago