Spaces:
Running
Running
Download 731ai/node_modules/jszip/lib/stream/ConvertWorker.js from u11310019/interactive-multi-web: direct link, hf CLI and curl.
- Browser
- Download file 648 Bytes
-
https://huggingface.co/spaces/u11310019/interactive-multi-web/resolve/main/731ai/node_modules/jszip/lib/stream/ConvertWorker.js
- Command line
-
hf download hf://spaces/u11310019/interactive-multi-web/731ai/node_modules/jszip/lib/stream/ConvertWorker.js
-
curl -L -o ConvertWorker.js https://huggingface.co/spaces/u11310019/interactive-multi-web/resolve/main/731ai/node_modules/jszip/lib/stream/ConvertWorker.js
648 Bytes
| ; | |
| var GenericWorker = require("./GenericWorker"); | |
| var utils = require("../utils"); | |
| /** | |
| * A worker which convert chunks to a specified type. | |
| * @constructor | |
| * @param {String} destType the destination type. | |
| */ | |
| function ConvertWorker(destType) { | |
| GenericWorker.call(this, "ConvertWorker to " + destType); | |
| this.destType = destType; | |
| } | |
| utils.inherits(ConvertWorker, GenericWorker); | |
| /** | |
| * @see GenericWorker.processChunk | |
| */ | |
| ConvertWorker.prototype.processChunk = function (chunk) { | |
| this.push({ | |
| data : utils.transformTo(this.destType, chunk.data), | |
| meta : chunk.meta | |
| }); | |
| }; | |
| module.exports = ConvertWorker; | |