wishthis/node_modules/vinyl/lib/is-stream.js
2022-01-21 09:28:41 +01:00

15 lines
194 B
JavaScript

'use strict';
function isStream(stream) {
if (!stream) {
return false;
}
if (typeof stream.pipe !== 'function') {
return false;
}
return true;
}
module.exports = isStream;