Initial import
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
function inspectStream(stream) {
|
||||
var streamType = stream.constructor.name;
|
||||
// Avoid StreamStream
|
||||
if (streamType === 'Stream') {
|
||||
streamType = '';
|
||||
}
|
||||
|
||||
return '<' + streamType + 'Stream>';
|
||||
}
|
||||
|
||||
module.exports = inspectStream;
|
||||
Reference in New Issue
Block a user