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

function isStream(stream) {
  if (!stream) {
    return false;
  }

  if (typeof stream.pipe !== 'function') {
    return false;
  }

  return true;
}

module.exports = isStream;