Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 970 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 970 Bytes

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>