mirror of
https://github.com/nextcloud/nextcloud.com.git
synced 2026-01-28 14:01:36 +00:00
12 lines
264 B
JavaScript
12 lines
264 B
JavaScript
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>';
|
|
};
|