denim-memoize
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "denim-memoize", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Utility to memoize functions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -31,2 +31,18 @@ # denim-memoize | ||
### Usage | ||
``` | ||
import memoizeFactory from 'denim-memoize' | ||
const myFunction = () => { | ||
return 'Hello Memoizer' | ||
} | ||
const memoizedMyFunction = memoizeFactory(myFunction) | ||
// to get memoization, now just use memoizedMyFunction in place of myFunction | ||
let result = memoizedMyFunction() | ||
``` | ||
## Running the tests | ||
@@ -33,0 +49,0 @@ |
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
nano-memoize |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5171
72
1