Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Generates n-dimensional grid graphs.
npm install grid-graph
var gridGen = require("grid-graph")
//A 5x5 grid
console.log(gridGen([5, 5]))
//A 3x3x3 cube
console.log(gridGen([3, 3, 3]))
//Periodic grids are allowed too. Example, 4x6 torus:
console.log(gridGen([3,4], true))
//You can also make the grid periodic along only some axes. Example cylinder:
console.log(gridGen([5,5], [true, false]))
require("grid-graph")(shape[, periodic])
Generates a grid graph
shape
is an array of the dimensions of each axisperiodic
is an optional argument which is either an array of truthy values which determine whether or not to make some axis periodic.Returns An array of edges for the newly generated grid.
(c) 2013 Mikola Lysenko. MIT License
FAQs
Generates a grid shaped graph
The npm package grid-graph receives a total of 4 weekly downloads. As such, grid-graph popularity was classified as not popular.
We found that grid-graph 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.