UNPKG

rubico

Version:

[a]synchronous functional programming

13 lines (11 loc) 288 B
/** * @name isNodeReadStream * * @synopsis * isNodeReadStream(value any) -> boolean * * @description * Determine whether a value is a Node.js Readable Stream. */ const isNodeReadStream = value => value != null && typeof value.pipe == 'function' module.exports = isNodeReadStream