webworker-file
Initialize imported web worker files with ease
Installation
npm install --save webworker-file
or:
yarn add webworker-file
Usage
// workerFile.jsconst worker = { ; // File to import will be downloaded, ensure that the path is relative to the server address const scriptPath = "https://archive.org/download/ffmpeg_asm/ffmpeg_asm.js"; ; { ; };};;
;; const worker = workerFile;worker { // ... console;};
License
MIT