first commit
This commit is contained in:
15
build/node_modules/vinyl/lib/inspectStream.js
generated
vendored
Normal file
15
build/node_modules/vinyl/lib/inspectStream.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
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>';
|
||||
};
|
||||
Reference in New Issue
Block a user