diff options
Diffstat (limited to 'node_modules/to-readable-stream/index.js')
-rw-r--r-- | node_modules/to-readable-stream/index.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/to-readable-stream/index.js b/node_modules/to-readable-stream/index.js new file mode 100644 index 0000000..554bfa5 --- /dev/null +++ b/node_modules/to-readable-stream/index.js @@ -0,0 +1,11 @@ +'use strict'; +const {Readable} = require('stream'); + +module.exports = input => ( + new Readable({ + read() { + this.push(input); + this.push(null); + } + }) +); |