A tiny library that simplifies calling functions in a worker by handling events and turning them into promises.
npm install @easy-worker/coreA tiny library that simplifies calling functions in a worker by handling events
and turning them into promises.
It works very similarly to comlink,
but it's much smaller and simpler.
If you don't need control over the worker, you might also consider the
following alternatives:
- greenlet: if you need to move only a single function to a worker;
- workerize: if you need to move a whole module to a worker.
``sh``
npm i @easy-worker/coreor
yarn add @easy-worker/coreor
bun i @easy-worker/core