Rare find

Memoize. Speed up repeated function calls by remembering previous results.

github.com/sindresorhus/memoize

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

March 2026
  • Release —
  • 11.0.0
  • Require Node.js 22
  • Tweaks
  • Export `CacheItem` and `CacheLike` types
  • Migrate `memoizeDecorator` to TC39 stage 3 decorators
October 2025
  • Release —
  • 10.2.0
  • Handle some edge-cases and some refactoring (#110)
September 2025
  • Fix timer ID memory leak with `maxAge` option (#109)
  • Add `memoizeIsCached()` function to check cache existence (#108)
February 2025
  • Release —
  • 10.1.0
  • Let `maxAge` option accept a function (#105)
August 2024
  • Meta tweaks
November 2023
  • Fix typos
  • Release —
  • 10.0.0
  • Rename package from `mem` to `memoize`
  • Use custom cache expiration logic (#94)
  • Require Node.js 18
May 2023
  • Update dependencies (#91)
January 2022
  • Release —
  • 9.0.2
  • Export `Options` type from package (#88)
July 2021
  • Release —
  • Release —
April 2021
  • Release —
March 2021
  • Release —
October 2020
  • Release —