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.
bitmap-to-boxes
Advanced tools
Partitions a binary image into a non-overlapping collection of rectangles. Works both in node.js and in browserify.
var image = require("ndarray-pack")([
[1, 1, 0, 0, 0, 1],
[0, 1, 1, 1, 0, 1],
[0, 1, 0, 1, 0, 1],
[0, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1],
[1, 1, 1, 0, 0, 1]
])
var boxes = require("bitmap-to-boxes")(image)
npm install bitmap-to-boxes
require("bitmap-to-boxes")(image[, greedy])
Decomposes the binary bitmap image into a collection of boxes.
image
is a binary 2D ndarraygreedy
is an optional flag, which if set uses a faster greedy approximation instead of an optimal algorithm.Returns A list of boxes encoded by their lower/upper bounds respectively which partition the image.
(c) 2014 Mikola Lysenko. MIT License
FAQs
Partitions a 2D binary image into rectangles
The npm package bitmap-to-boxes receives a total of 2 weekly downloads. As such, bitmap-to-boxes popularity was classified as not popular.
We found that bitmap-to-boxes 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.