blob: d36df6ff662bb0a28e92265c5080804452442357 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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>';
};
|