dotfiles/.vscode/extensions/saviorisdead.RustyCode-0.18.0/node_modules/vinyl/lib/inspectStream.js

12 lines
264 B
JavaScript
Raw Normal View History

2016-09-11 09:29:13 +01:00
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>';
};