
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@beoe/cache
Advanced tools
[!WARNING] One of ideas was to use this as shared cache inside Astro components. But for now it doesn't work. If it is used inside Astro component build process (prerendering) fails. Though it does work in rehype/remark plugins. And in Astro components in development mode.
Probably would need to create custom Astro integration (virtual module), but hard to tell because I don't understand why it fails
Thin wrapper arround @beoe/sqlitecache so the same cache can be shared between different rehype/remark plugins and Astro components
Because cache would be "hidden" inside other packages it exposes way to configure instance through local file (with cosmiconfig).
By default it stores cache in node_modules/.beoe
folder. This will make it easy to use, node_modules
often cached in CI and added to .gitignore
. On the other hand I haven't seen this approach before, there can be downsides that I haven't thought about.
You can change where cache is stored using configuration (beoe.config.mjs
):
import { defineConfig } from "@beoe/cache";
export default defineConfig({
database: "other_folder/cache.sqlite",
});
import { getCache } from "@beoe/cache";
const cache = await getCache();
FAQs
Shareable persistent LRU TTL cache based on SQLite
The npm package @beoe/cache receives a total of 149 weekly downloads. As such, @beoe/cache popularity was classified as not popular.
We found that @beoe/cache demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.