https://github.com/trentmwillis/worker-box
A toolbox to help you test Web Workers
https://github.com/trentmwillis/worker-box
javascript testing web-worker worker
Last synced: 3 months ago
JSON representation
A toolbox to help you test Web Workers
- Host: GitHub
- URL: https://github.com/trentmwillis/worker-box
- Owner: trentmwillis
- License: mit
- Created: 2017-09-11T23:22:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-08T23:43:58.000Z (over 7 years ago)
- Last Synced: 2025-03-30T00:12:02.855Z (4 months ago)
- Topics: javascript, testing, web-worker, worker
- Language: JavaScript
- Homepage: https://pretty-okay.com/worker-box
- Size: 48.8 KB
- Stars: 42
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Worker Box [](https://travis-ci.org/trentmwillis/worker-box) [](https://pretty-okay.com/worker-box) [](https://www.npmjs.com/package/worker-box)
Worker Box is a toolbox to help you test [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API). It provides an easy way to create, stub, and modify your Workers without complicated test servers or monkey patches. For more info, be sure to check out the [documentation](https://pretty-okay.com/worker-box/)!
## Installation
Install Worker Box through [npm](https://www.npmjs.com/):
```bash
npm install --save-dev worker-box
```And then load it via a script tag in your page:
```html
```
And that's it! The `WorkerBox` global should now be available for use.
## Usage
For information on how to use Worker Box and the APIs it provides, check out [the official documentation]([documentation](https://pretty-okay.com/worker-box/)).