0.1.6 • Published 5 years ago

text-to-worker v0.1.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

text-to-worker

Moves a module into a Web Worker, automatically reflecting exported functions as asynchronous proxies.

Install

npm install --save text-to-worker

worker.js:

import { textToWorker } from "text-to-worker";

let worker = textToWorker(`
	function sum(a, b) {
        return a + b;
    }
`);

(async () => {
    const result = await worker.sum(1, 2);
    console.log(result);//prints 3;
})();

License

MIT License © Nishkal Kashyap

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.1-alpha.1

5 years ago