Skip to content

bloq/js-packages

Repository files navigation

js-packages

This is a collection of small and useful packages we use across many of our solutions. Have fun!

Packages

Promises

  • promise-mem: Memoizes a promise-returning function.
  • promise-stale-if-error: Wraps a promise-returning function so it resolves to the last good value on error.
  • promise-swr: Caches a promise-returning function with a stale-while-revalidate strategy.
  • promise-throttle-bucket: Throttles a promise-returning function using the token-bucket algorithm.

Tiny ones

  • tiny-mem: Minimal, no-dependencies memoization helper.

Utilities

Publishing

To publish the latest changes to the packages, execute this command:

npx lerna publish --concurrency 1 --otp <OTP>

About

A collection of small and useful packages we use across many of our solutions

Resources

License

Stars

Watchers

Forks

Packages

No packages published