DiscofyAPI/node_modules/to-readable-stream/index.js

12 lines
160 B
JavaScript
Raw Permalink Normal View History

2021-03-25 17:23:36 +01:00
'use strict';
const {Readable} = require('stream');
module.exports = input => (
new Readable({
read() {
this.push(input);
this.push(null);
}
})
);