a toString method
var Stream = require('machinepack-stream');
// a toString method
Stream.stringify({
stream: '*',
write: '.tmp/test.log',
}).exec({
// An unexpected error occurred.
error: function (err) {
},
// It's not a valid stream
errorNotStream: function () {
},
// OK.
success: function (result) {
},
});
A readable stream
a path for writing file
'.tmp/test.log'
An unexpected error occurred.
It's not a valid stream
OK.
'a content text'