Express_Crud_Example/node_modules/to-readable-stream/index.js
2022-01-28 22:33:42 +01:00

12 lines
160 B
JavaScript

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