Backend/node_modules/to-readable-stream/index.js
2021-12-31 15:03:23 +05:30

12 lines
160 B
JavaScript

'use strict';
const {Readable} = require('stream');
module.exports = input => (
new Readable({
read() {
this.push(input);
this.push(null);
}
})
);