| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 1 | 'use strict'; |
| 2 | |||||
| 3 | function 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 | |||||
| 13 | module.exports = inspectStream; | ||||