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

nano-memoize

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nano-memoize - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name": "nano-memoize",
"version": "v1.0.5",
"version": "v1.0.6",
"description": "Faster than fast, smaller than micro ... a nano speed and nano size memoizer.",

@@ -5,0 +5,0 @@ "engines": {},

@@ -167,3 +167,3 @@ [![Codacy Badge](https://api.codacy.com/project/badge/Grade/30ce201484754fa5b0a6c6046abb842d)](https://www.codacy.com/app/syblackwell/nano-memoize?utm_source=github.com&utm_medium=referral&utm_content=anywhichway/nano-memoize&utm_campaign=Badge_Grade)

```javascript
const memoized = micromemoize(sum(a,b) => a + b);
const memoized = nanonmemoize(sum(a,b) => a + b);
memoized(1,2); // 3

@@ -173,3 +173,3 @@ memoized(1,2); // pulled from cache

`memoized(function,options) returns function`
`nanonmemoize(function,options) returns function`

@@ -193,4 +193,8 @@ The shape of options is:

To clear the cache you can call `.clear()` on the function returned my `nanomemoize`.
# Release History (reverse chronological order)
2019-03-20 v1.0.6 Updated documentation.
2019-03-11 v1.0.5 Now supports setting `maxAge` to Infinity and no timers will be created to expire caches.

@@ -197,0 +201,0 @@

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