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.
namastey-adjacency-matrix
Advanced tools
A JavaScript package implementing the Adjacency Matrix data structure for efficient graph representation and operations.
namastey-adjacency-matrix
is a JavaScript package that implements an adjacency matrix data structure. It provides methods for adding, removing, and checking edges, as well as retrieving and printing the matrix.
true
if an edge exists, otherwise false
.To install namastey-adjacency-matrix
, run:
npm install -g namastey-adjacency-matrix
const AdjacencyMatrix = require('namastey-adjacency-matrix');
// Create a new adjacency matrix with 4 nodes
const graph = new AdjacencyMatrix(4);
// Add edges
graph.addEdge(0, 1);
graph.addEdge(1, 2);
// Check if an edge exists
console.log(graph.hasEdge(0, 1)); // Output: true
console.log(graph.hasEdge(0, 2)); // Output: false
// Print the matrix
graph.printMatrix();
// Get the matrix
console.log(graph.getMatrix());
FAQs
A JavaScript package implementing the Adjacency Matrix data structure for efficient graph representation and operations.
The npm package namastey-adjacency-matrix receives a total of 0 weekly downloads. As such, namastey-adjacency-matrix popularity was classified as not popular.
We found that namastey-adjacency-matrix 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.
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.