dienstplan/node_modules/vinyl/lib/inspectStream.js
2017-09-13 07:52:34 +02:00

16 lines
288 B
JavaScript
Vendored

var isStream = require('./isStream');
module.exports = function(stream) {
if (!isStream(stream)) {
return;
}
var streamType = stream.constructor.name;
// Avoid StreamStream
if (streamType === 'Stream') {
streamType = '';
}
return '<' + streamType + 'Stream>';
};