Strings.toStream()

Convert a string into a readable stream of data.

The stream that is returned is a modern (streams2) Node Readable instance. In other words it is _paused_ until it is used.

Usage

Hover over inputs/exits for more info.

var Strings = require('machinepack-strings');


// Convert a string into a readable stream of data.

Strings.toStream({

string: 'foo bar baz',

}).execSync();

Inputs

string required

The string to convert.

'foo bar baz'

Exits

error

An unexpected error occurred.

success

OK.

'==='