/mutapipe

Create immutable streams you can modify before compiling

Primary LanguageJavaScript

mutapipe Build Status

A library for creating modifiable streams, useful in Gulp. Inspired by lazypipe.

Installation

npm install mutapipe --save

Usage

Supports the same basic API as lazypipe.

var mutapipe = require('mutapipe'),
  by = mutapipe.by;

var pipeline = mutapipe()
  .pipe(jshint)
  .pipe(jshint.reporter, 'jshint-stylish');

pipeline = pipeline.replace(by.task(jshint.reporter)).with(jshint.reporter, 'default');

For more examples see tests.

Contributing

Make sure gulp build passes, otherwise try to maintain similar code style.

License

MIT