0.1.0 • Published 5 months ago

@easy-worker/core v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

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