# expo-job-queue

> An SQLite based job queue for Expo

Latest version **1.4.2** (published 2021-12-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install expo-job-queue
pnpm add expo-job-queue
yarn add expo-job-queue
bun add expo-job-queue
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.2 |
| Published | 2021-12-16 |
| First published | 2021-05-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 155.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Something Corp |
| Maintainers | sallar |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/expo-job-queue
- Repository: https://github.com/SomethingCo/expo-job-queue
- Homepage: https://github.com/SomethingCo/expo-job-queue#readme
- Issues: https://github.com/SomethingCo/expo-job-queue/issues
- npm.io page: https://npm.io/package/expo-job-queue

## Dependencies (2)

- [date-fns](https://npm.io/package/date-fns.md) ^2.21.3
- [expo-sqlite](https://npm.io/package/expo-sqlite.md) ^10.0.3

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.4.2 (latest) — 2021-12-16
- 1.4.1 — 2021-05-28
- 1.4.0 — 2021-05-27
- 1.3.0 — 2021-05-27
- 1.2.0 — 2021-05-26
- 1.1.1 — 2021-05-25
- 1.1.0 — 2021-05-25
- 1.0.0 — 2021-05-25
- 0.4.0 — 2021-05-25

## README

# expo-job-queue

An SQLite based job queue for Expo

## Installation

```sh
yarn add expo-job-queue
```

## Usage

```js
import ExpoJobQueue from "expo-job-queue";

// ...

ExpoJobQueue.configure({
  onQueueFinish: () => {
    console.log("Queue stopped and executed")
  },
})

ExpoJobQueue.addWorker("testWorker", async (payload) => {
  return new Promise((resolve) => {
    setTimeout(() => {
      console.log("JOB RAN: " + JSON.stringify(payload))
      resolve(undefined)
    }, payload.delay)
  })
})

// ...
ExpoJobQueue.addJob("testWorker", { text: "THIS IS FANTASTIC", delay: 1000 })
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

Heavily copied from and inspired by [react-native-job-queue](https://github.com/SimonErm/react-native-job-queue) licensed under the MIT License.

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