thedesk/app/node_modules/to-readable-stream/index.js
2019-09-12 23:38:13 +09:00

12 lines
160 B
JavaScript

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