Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zoubin/dest-stream

Wrapper for vinyl-source-stream and vinyl-fs to make a dest stream
https://github.com/zoubin/dest-stream

Last synced: 8 days ago
JSON representation

Wrapper for vinyl-source-stream and vinyl-fs to make a dest stream

Awesome Lists containing this project

README

        

# dest-stream
Wrapper for vinyl-source-stream and vinyl-fs to make a dest stream

The returned Writable is a [writable-stream-stack](https://www.npmjs.com/package/writable-stream-stack), and transforms can be added to make changes before pipe inot the dest.

## Usage

```javascript
var Dest = require('dest-stream');
```

### Dest(filename)
### Dest(filename[, basedir], cb)

* The dest file path will be `path.resolve(basedir, filename)`.
* `cb` will be called after all contents are piped into the dest.