Opal-Estate-Pro/node_modules/vinyl/lib/inspect-stream.js

14 lines
249 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02:00
'use strict';
function inspectStream(stream) {
var streamType = stream.constructor.name;
// Avoid StreamStream
if (streamType === 'Stream') {
streamType = '';
}
return '<' + streamType + 'Stream>';
}
module.exports = inspectStream;