Socket
Socket
Sign inDemoInstall

@turf/bbox

Package Overview
Dependencies
Maintainers
4
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/bbox - npm Package Compare versions

Comparing version 4.5.2 to 4.6.0

11

index.js

@@ -10,14 +10,7 @@ var coordEach = require('@turf/meta').coordEach;

* @example
* var line = {
* "type": "Feature",
* "properties": {},
* "geometry": {
* "type": "LineString",
* "coordinates": [[-74, 40], [-78, 42], [-82, 35]]
* }
* }
* var line = turf.lineString([[-74, 40], [-78, 42], [-82, 35]]);
* var bbox = turf.bbox(line);
* var bboxPolygon = turf.bboxPolygon(bbox);
*
* //addToMap
* var bboxPolygon = turf.bboxPolygon(bbox);
* var addToMap = [line, bboxPolygon]

@@ -24,0 +17,0 @@ */

6

package.json
{
"name": "@turf/bbox",
"version": "4.5.2",
"version": "4.6.0",
"description": "turf bbox module",

@@ -34,3 +34,3 @@ "main": "index.js",

"devDependencies": {
"@turf/helpers": "^4.5.2",
"@turf/helpers": "^4.6.0",
"benchmark": "^2.1.4",

@@ -40,4 +40,4 @@ "tape": "^4.6.3"

"dependencies": {
"@turf/meta": "^4.5.2"
"@turf/meta": "^4.6.0"
}
}

@@ -14,14 +14,7 @@ # @turf/bbox

```javascript
var line = {
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [[-74, 40], [-78, 42], [-82, 35]]
}
}
var line = turf.lineString([[-74, 40], [-78, 42], [-82, 35]]);
var bbox = turf.bbox(line);
var bboxPolygon = turf.bboxPolygon(bbox);
//addToMap
var bboxPolygon = turf.bboxPolygon(bbox);
var addToMap = [line, bboxPolygon]

@@ -28,0 +21,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc