12 lines
160 B
JavaScript
12 lines
160 B
JavaScript
|
'use strict';
|
||
|
const {Readable} = require('stream');
|
||
|
|
||
|
module.exports = input => (
|
||
|
new Readable({
|
||
|
read() {
|
||
|
this.push(input);
|
||
|
this.push(null);
|
||
|
}
|
||
|
})
|
||
|
);
|