
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
cache-result
Advanced tools
You cache the results you know when to flush'em
npm install cache-result
It deals with nested cache without taking size into consideration. Instead, you decided what part of caching is not related anymore and what part should be preserved.
const cache = require("cache-result");
const { set, get, clear } = cache();
Each function take object input:
branch: string
- To set working branch for cachekey: string
- key to value in cacheset({ branch, key }, result)
get({ branch, key })
clear({ branch, key })
To delete the whole branch pass clear({ branch })
without key
const cache = require("../src");
const { set, get, clear } = cache();
set({ branch: "foo", key: "hello" }, "sunshine");
set({ branch: "bar", key: "by" }, "sunset");
get({ branch: "foo", key: "hello" }); // sunshine
get({ branch: "bar", key: "by" }); // sunset
clear({ branch, "foo" });
get({ branch: "foo", key: "hello" }); // null
get({ branch: "bar", key: "by" }); // sunset
npm test
This project is licensed under the GPL-3.0 License
builderz - Zero Configuration JS bundler.
packageSorter - Sorting packages for monorepos production.
corename - Extracts package name.
move-position - Moves element index in an array.
get-info - Utility functions for projects production.
textics & textics-stream - Counts lines, words, chars and spaces for a given string.
folo - Form & Layout Components Built with React.
FAQs
> You cache the results you know when to flush'em
We found that cache-result 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.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.