
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@nerimity/mimiqueue
Advanced tools
pnpm i redis @nerimity/mimiqueue
import { createClient } from "redis";
import { Queue } from "@nerimity/mimiqueue";
import { setTimeout } from "timers/promises";
const redisClient = createClient({
socket: {
host: "127.0.0.1",
port: 6379,
},
});
await redisClient.connect();
await redisClient.flushAll();
const addFriendQueue = new Queue({
redisClient,
name: "addFriend",
process: async (data) => {
await setTimeout(2000);
return { done: "lol", data };
},
});
addFriendQueue.add({ someData: 1 }, { groupName: "1234" }).then((res) => {
console.log(res);
});
addFriendQueue.add("hello", { groupName: "1234" }).then((res) => {
console.log(res);
});
addFriendQueue.add(123).then((res) => {
console.log(res);
});
import { createClient } from "redis";
import { AltQueue } from "@nerimity/mimiqueue";
import { setTimeout } from "timers/promises";
const redisClient = createClient({
socket: {
host: "127.0.0.1",
port: 6379,
},
});
await redisClient.connect();
await redisClient.flushAll();
const queue = new AltQueue({
redisClient,
name: "addFriend",
});
async function doSomething(groupName) {
const done = await queue.start({ groupName });
console.log("doing something");
await setTimeout(1000);
done();
}
doSomething("123");
doSomething("123");
import { createClient } from "redis";
import { AltQueue2 } from "@nerimity/mimiqueue";
import { setTimeout } from "timers/promises";
const redisClient = createClient({
socket: {
host: "127.0.0.1",
port: 6379,
},
});
await redisClient.connect();
await redisClient.flushAll();
const queue = new AltQueue2({
redisClient,
name: "addFriend",
});
async function queueDoSomething(groupName) {
queue.add(() => doSomething(groupName), { groupName });
}
async function doSomething(groupName) {
console.log("doing something");
await setTimeout(1000);
}
queueDoSomething("123");
queueDoSomething("123");
FAQs
NodeJS group queuing library. Requires Redis.
We found that @nerimity/mimiqueue 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.