# @giuem/worker

> Make WebWorker great again

Latest version **0.1.1** (published 2019-11-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @giuem/worker
pnpm add @giuem/worker
yarn add @giuem/worker
bun add @giuem/worker
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-11-20 |
| First published | 2019-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | giuem |

## Links

- npm: https://www.npmjs.com/package/@giuem/worker
- npm.io page: https://npm.io/package/@giuem/worker

## Recent versions

- 0.1.1 (latest) — 2019-11-20
- 0.1.0-alpha.2 (alpha) — 2019-11-19
- 0.1.0 — 2019-11-20
- 0.1.0-alpha.1 — 2019-11-19
- 0.1.0-alpha.0 — 2019-11-19

## README

# Worker (Experiment)

Make WebWorker great again.

## Example

``` javascript
import { makeWorker } from '@giuem/worker';

function fibonacci(n) {
  if(n==0 || n == 1) return n;
  return fibonacci(n - 1) + fibonacci(n - 2);
}

const worker = makeWorker(fibonacci)

worker
  .exec(20)
  .then(console.log)
  .finally(() => {
    worker.terminate()
  })

```

---
_Source: https://npm.io/package/@giuem/worker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
