Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
methodqueue
Advanced tools
MethodQueue is a simple queueing system for methods for Javascript.
Install MethodQueue using NPM:
npm i methodqueue --save
Once installed, you can import it into your application using:
const Queue = require("methodqueue")
Or if you use Typescript/Webpack:
import Queue from "methodqueue"
There it is! Now, create a new method queue with:
let queue = new Queue([...methods])
Dont modify these properties, you could break stuff.
._queuedMethods
An Array containg all queued methods.
queue._queuedMethods
._processedMethods
The current method index.
queue._processedMethods
.next(...args)
Call next function with provided arguments.
queue.next({message: "Goodbye"})
.prev(...args)
Call previous function with provided arguments.
queue.prev({message: "Hello"})
.jump(index, ...args)
Call specified function with provided arguments.
queue.jump(1, {message: "Jumpin' back 'n forth."})
.add(methods)
Add methods to queue.
queue.add([a => "hello" + a, b => b + "goodbye"])
FAQs
A simple queueing system for methods.
The npm package methodqueue receives a total of 1 weekly downloads. As such, methodqueue popularity was classified as not popular.
We found that methodqueue 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.