Stream.createRead()

Create a read stream

Usage

Hover over inputs/exits for more info.

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


// Create a read stream

Stream.createRead({

path: 'tmp.log',

text: 'lorem ipsum',

}).execSync();

Inputs

path

A path file

'tmp.log'
text

A text

'lorem ipsum'

Exits

error

An unexpected error occurred.

pathError

File does not exist.

noStreamError

does not exist.

success

OK.