aboutsummaryrefslogtreecommitdiff
path: root/node_modules/vinyl/lib/inspect-stream.js
blob: 9faaa0a409d590e678c2e6362817ace03e5976cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict';

function inspectStream(stream) {
  var streamType = stream.constructor.name;
  // Avoid StreamStream
  if (streamType === 'Stream') {
    streamType = '';
  }

  return '<' + streamType + 'Stream>';
}

module.exports = inspectStream;