
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@webileapps/async-memoizer
Advanced tools
A memoizer for asynchronous functions that memoizes the results of the resolved promise for future use.
This is a memoizer for asynchronous functions that return a promise.
import asyncMemoizer from "@webileapps/async-memoizer";
async function getUserFromSomewhere(id: string) {
return Promise.resolve({ id, name: "John" });
}
const function memoizedGetUserFromSomewhere = asyncMemoizer(getUserFromSomewhere);
const [ result1, result2 ] = await Promise.all([memoizedGetUserFromSomewhere("1"), memoizedGetUserFromSomewhere("2")]);
const [ result3, result4 ] = await Promise.all([memoizedGetUserFromSomewhere("1"), memoizedGetUserFromSomewhere("2")]);
// In the above case, the second calls to getUserFromSomewhere will be skipped as the results are memoized
FAQs
A memoizer for asynchronous functions that memoizes the results of the resolved promise for future use.
The npm package @webileapps/async-memoizer receives a total of 2 weekly downloads. As such, @webileapps/async-memoizer popularity was classified as not popular.
We found that @webileapps/async-memoizer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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 Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.