MCPcopy Create free account
hub / github.com/TruthHun/BookStack / Duplex

Function Duplex

static/word2md/mammoth.browser.js:24088–24102  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

24086}
24087
24088function Duplex(options) {
24089 if (!(this instanceof Duplex)) return new Duplex(options);
24090
24091 Readable.call(this, options);
24092 Writable.call(this, options);
24093
24094 if (options && options.readable === false) this.readable = false;
24095
24096 if (options && options.writable === false) this.writable = false;
24097
24098 this.allowHalfOpen = true;
24099 if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;
24100
24101 this.once('end', onend);
24102}
24103
24104// the no-half-open enforcer
24105function onend() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected