Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fibrelite

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fibrelite

Seamlessly use [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) to offload work that could block user interaction and page rendering.

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Fibrelite

Seamlessly use Web Workers to offload work that could block user interaction and page rendering.

With fibrelite you can turn any async function into a Web Worker. Fibrelite has three core approaches to handling work:

  • Execute: Execute an async function as a Web Worker
  • Debounce: Only run the an async function on last value in a batch of incoming operations
  • Prioritise: Run all incoming operations but kill off workers as new operations come in

Example

Check out fibrelite in action here.

Install

For npm:

npm install fibrelite

Or for yarn:

yarn add fibrelite

TODO:

  • Tests
  • More use cases / examples
  • Performance review

Acknowledgements

A massive thanks to Jason Miller for the Greenlet library on which this is heavily based and inspired.

License

MIT

FAQs

Package last updated on 27 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc