OCA_Backend/api/node_modules/to-readable-stream/index.js

12 lines
160 B
JavaScript
Raw Normal View History

2022-01-22 13:36:44 +00:00
'use strict';
const {Readable} = require('stream');
module.exports = input => (
new Readable({
read() {
this.push(input);
this.push(null);
}
})
);