MCPcopy Create free account
hub / github.com/Stuk/jszip / NodejsStreamInputAdapter

Function NodejsStreamInputAdapter

lib/nodejs/NodejsStreamInputAdapter.js:12–16  ·  view source on GitHub ↗

* A worker that use a nodejs stream as source. * @constructor * @param {String} filename the name of the file entry for this stream. * @param {Readable} stream the nodejs stream.

(filename, stream)

Source from the content-addressed store, hash-verified

10 * @param {Readable} stream the nodejs stream.
11 */
12function NodejsStreamInputAdapter(filename, stream) {
13 GenericWorker.call(this, "Nodejs stream input adapter for " + filename);
14 this._upstreamEnded = false;
15 this._bindStream(stream);
16}
17
18utils.inherits(NodejsStreamInputAdapter, GenericWorker);
19

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected