Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function Writable(options) {
var Duplex = require("./_stream_duplex");
if (!(this instanceof Writable) && !(this instanceof Duplex))
return new Writable(options);
this._writableState = new WritableState(options, this);
this.writable = true;
Stream.call(this);
}
Writable.prototype.pipe = function() {
function Readable(options) {
var Duplex = require("./_stream_duplex");
if (!(this instanceof Readable))
return new Readable(options);
this._readableState = new ReadableState(options, this);
this.readable = true;
Stream.call(this);
}
Readable.prototype.push = function(chunk, encoding) {