Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Functions for Working with GeoSpatial Canvas Elements
npm install geocanvas
import { maskCanvas } from 'geocanvas';
// this function is mutable
// modifying the original canvas
maskCanvas({
// required
// an HTML Canvas Element
canvas,
// required
// bounding box of the canvas
// as [xmin, ymin, xmax, ymax]
// or [west, south, east, north]
canvas_bbox: [7698736.857788673, 163239.83797837645, 10066450.245949661, 1325082.6679127468],
// required
// spatial reference system of the canvas image
canvas_srs: 3857,
// optional
canvas_pixel_height: 2445.98490512499,
// optional
canvas_pixel_width: 2445.98490512499,
// required
// a GeoJSON Feature, FeatureCollection, Polygon, or MultiPolygon
mask: { type: "FeatureCollection", features: [ /* ... */ ] },
// required
// spatial reference system of the mask geometry
mask_srs: 4326,
// optional parameter
// accepts "outside" or "inside"
// default is outside
// choose whether to make the inside or outside
// of the mask geometry transparent
strategy: "outside"
});
FAQs
Functions for Working with GeoSpatial Canvas Elements
The npm package geocanvas receives a total of 2,047 weekly downloads. As such, geocanvas popularity was classified as popular.
We found that geocanvas 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 malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.