mirror of
https://github.com/Raghu-Ch/nodeRestAPI.git
synced 2026-02-11 05:03:02 -05:00
initial commit
This commit is contained in:
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>';
|
||||
};
|
||||
Reference in New Issue
Block a user