Error [ERR_METHOD_NOT_IMPLEMENTED]: The _write() method is not implemented code example
Example: Error [ERR_METHOD_NOT_IMPLEMENTED]: The _write() method is not implemented
const { Readable } = require("stream");
const readableStream = new Readable();
readableStream.push(JSON.stringify({"name": "x"}));
readableStream.push(null);
readableStream.on('data', (chunk) => {
console.log(chunk.toString());
});