# fastify-threads

> A Fastify plugin that exposes threads.js functionality

Latest version **2.0.0** (published 2022-08-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install fastify-threads
pnpm add fastify-threads
yarn add fastify-threads
bun add fastify-threads
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2022-08-03 |
| First published | 2021-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Osama Adil |
| Maintainers | phr3nzy |
| Keywords | fastify, worker_threads, threads.js |

## Links

- npm: https://www.npmjs.com/package/fastify-threads
- Repository: https://github.com/phr3nzy/fastify-threads
- Homepage: https://github.com/phr3nzy/fastify-threads#readme
- Issues: https://github.com/phr3nzy/fastify-threads/issues
- npm.io page: https://npm.io/package/fastify-threads

## Dependencies (2)

- [threads](https://npm.io/package/threads.md) ^1.6.4
- [fastify-plugin](https://npm.io/package/fastify-plugin.md) ^4.0.0

## Alternatives

- [cron](https://npm.io/package/cron.md) — 4.9M weekly downloads
- [@vercel/queue](https://npm.io/package/@vercel/queue.md) — 731.6K weekly downloads
- [create-sonicjs](https://npm.io/package/create-sonicjs.md) — 1.6K weekly downloads
- [@exellix/jobs-api](https://npm.io/package/@exellix/jobs-api.md) — 941 weekly downloads
- [@forwardimpact/libskill](https://npm.io/package/@forwardimpact/libskill.md) — 575 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2022-08-03
- 1.0.4 — 2021-08-20
- 1.0.1 — 2021-05-23
- 1.0.0 — 2021-05-23

## README

# fastify-threads

[![NPM version](https://img.shields.io/npm/v/fastify-threads)](https://www.npmjs.com/package/fastify-threads)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)

A Fastify plugin that exposes [threads.js](https://github.com/andywer/threads.js) functionality

## Requirements

- Node.js v14+

## Install

```bash
$ npm install fastify-threads
# install using npm

$ yarn add fastify-threads
# install using yarn
```

## Usage

Using is as simple as requiring and registering it:

```javascript
const fastify = require("fastify");
const threads = require("fastify-threads");

const app = fastify();

app.register(threads);
```

Now you have access to all [threads.js](https://github.com/andywer/threads.js) functions.

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