Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
memoize-sync
Advanced tools
Returns a memoized version of a function.
$ npm install memoize-sync
function work(n){
console.log("doing some work")
return n + 10
}
var memoizedWork = memoize(myfunc)
memoizedWork(10)
// "doing some work"
// => 20
memoizedWork(10)
// => 20
memoizedWork(20);
// "doing some work"
// => 30
memoizedWork(20);
// => 30
var memoizedWork = memoize(work, hasher)
memoizedWork('hello', 'world')
// doing some work
memoizedWork('hello', 'world')
// => hello world
memoizedWork('hello', 'kitty')
// doing some work
// => hello kitty
memoizedWork('hello', 'kitty')
// => hello kitty
function hasher(first, last){
return first + ', ' + last
}
function work(first, last){
console.log('doing some work')
return first + ', ' + last
}
FAQs
This package name is not currently in use, but was formerly occupied by a popular package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.
The npm package memoize-sync receives a total of 33 weekly downloads. As such, memoize-sync popularity was classified as not popular.
We found that memoize-sync demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.