Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@mapbox/geojson-extent
Advanced tools
Readme
Compute an extent given a GeoJSON object.
npm install --save @mapbox/geojson-extent
Live example with Mapbox Static Map API
var geojsonExtent = require('geojson-extent');
geojsonExtent({ type: 'Point', coordinates: [0, 0] }); // returns 0,0,0,0 extent
Provides a binary that takes GeoJSON as stdin and returns a JSON stringified array of extent data.
$ npm install -g geojson-extent
$ geojson-extent < file.geojson
Given an argument of leaflet
, this will return Leaflet-formatted data instead.
$ geojson-extent leaflet < file.geojson
extent(geojson)
Given any valid GeoJSON object, return bounds in the form [WSEN]
.
Invalid objects will return null
.
extent.polygon(geojson)
Given any valid GeoJSON object, return bounds in the form of a GeoJSON polygon object.
Invalid objects will return null
.
extent.bboxify(geojson)
Add bounding boxes to all appropriate GeoJSON objects - Feature, FeatureCollection, and Geometry.
FAQs
compute the bounding box of geojson features
The npm package @mapbox/geojson-extent receives a total of 237,061 weekly downloads. As such, @mapbox/geojson-extent popularity was classified as popular.
We found that @mapbox/geojson-extent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.