1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/vinyl/lib/inspectStream.js

12 lines
264 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08: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>';
};