Files
huishou/node_modules/to-readable-stream/index.js
T
2026-07-27 13:37:48 +08:00

16 lines
317 B
JavaScript

'use strict';
const {Readable: ReadableStream} = require('stream');
const toReadableStream = input => (
new ReadableStream({
read() {
this.push(input);
this.push(null);
}
})
);
module.exports = toReadableStream;
// TODO: Remove this for the next major release
module.exports.default = toReadableStream;