Stream.createWrite()

Create Write Stream

Usage

Hover over inputs/exits for more info.

var Stream = require('machinepack-stream');


// Create Write Stream

Stream.createWrite({

path: 'tmp.log',

stream: '*',

}).execSync();

Inputs

path required

A destination path file

'tmp.log'
stream

A readable stream

Exits

error

An unexpected error occurred.

errorNotStream

It's not a valid stream

success

OK.