blob: 9faaa0a409d590e678c2e6362817ace03e5976cb [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001'use strict';
2
3function inspectStream(stream) {
4 var streamType = stream.constructor.name;
5 // Avoid StreamStream
6 if (streamType === 'Stream') {
7 streamType = '';
8 }
9
10 return '<' + streamType + 'Stream>';
11}
12
13module.exports = inspectStream;