@easy-worker/core
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

easy-worker

A 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.

Installation

npm i @easy-worker/core
# or
yarn add @easy-worker/core
# or
bun i @easy-worker/core

Package Sidebar

Install

npm i @easy-worker/core

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

6.41 kB

Total Files

10

Last publish

Collaborators

  • dabolus