dotfiles/.vscode/extensions/saviorisdead.RustyCode-0.18.0/node_modules/vinyl/lib/inspectStream.js
Cyryl Płotnicki 2f946d6200 Add .vscode
2016-09-11 10:29:13 +02:00

11 lines
264 B
JavaScript

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>';
};