
Research
/Security News
Compromised npm Packages in the AsyncAPI Namespace Deliver Miasma Botnet Loader
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.
mono-cache
Advanced tools
install to npm dependencies :
npm i -D mono-cache
usage:
import cache from 'mono-cache';
interface CacheState {
name: string;
age: number;
next: {
weight: number;
height: number;
};
}
const c = cache<CacheState>();
c.set('name', 'mono-cache');
c.set('age', 18);
c.set('next.weight', 60);
c.set('next.height', 180);
const name = c.get('name');
const age = c.get('age');
const next = c.get('next');
console.log(name, age, next);
// ttl
c.set('name', 'mono-cache', 1000); // 1000 = 1s
// how to get result type on get method ?
import { CachePaths } from './type';
const nextPaths: CachePaths<CacheState> = 'next';
const typedNext = c.get<typeof nextPaths>(nextPaths);
console.log(typedNext.weight, typedNext.height);
FAQs
support ( memory & redis & upstash ) drive in nodejs
The npm package mono-cache receives a total of 10 weekly downloads. As such, mono-cache popularity was classified as not popular.
We found that mono-cache 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
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.