Init
This commit is contained in:
commit
4e066bffc9
10017 changed files with 1322084 additions and 0 deletions
11
node_modules/vinyl/lib/inspectStream.js
generated
vendored
Normal file
11
node_modules/vinyl/lib/inspectStream.js
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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>';
|
||||
};
|
||||
Loading…
Reference in a new issue