
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
snap-points-2d
Advanced tools
Runs iterative snap rounding on a set of 2D coordinates to produce a hierarchical level of detail for optimizing online rendering of huge 2D plots.
npm i snap-points-2d
var hlod = require('snap-points-2d')(points, output, outputIds[, bounds])Reorders the points hierarchically such that those which are drawn at the same pixel coordinate are grouped together.
points is an array of 2*n valuesoutput is the reordered array of pointsoutputIds is the index of the reordered points in the input arraybounds is an optional array of 4 values giving the bounding box of the pointsReturns An array of LOD scales. Each record is an object with the following properties:
pixelSize the pixel size of this level of detail in data unitsoffset the offset of this lod within the output arraycount the number of items in the lodNote the points in output are rescaled to the unit box [0,1]x[0,1] and the array points in the input is shuffled during execution.
(c) 2015 Mikola Lysenko. MIT License
FAQs
snap round 2d points
The npm package snap-points-2d receives a total of 523 weekly downloads. As such, snap-points-2d popularity was classified as not popular.
We found that snap-points-2d demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 26 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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.