Files
2023-07-12 16:31:19 +01:00

14 lines
249 B
JavaScript
Executable File

'use strict';
function inspectStream(stream) {
var streamType = stream.constructor.name;
// Avoid StreamStream
if (streamType === 'Stream') {
streamType = '';
}
return '<' + streamType + 'Stream>';
}
module.exports = inspectStream;