index.js 160 B

1234567891011
  1. 'use strict';
  2. const {Readable} = require('stream');
  3. module.exports = input => (
  4. new Readable({
  5. read() {
  6. this.push(input);
  7. this.push(null);
  8. }
  9. })
  10. );