Socket
Socket
Sign inDemoInstall

turf-extent

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-extent - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "turf-extent",
"version": "0.1.1",
"version": "0.1.2",
"description": "turf extent module",

@@ -5,0 +5,0 @@ "main": "index.js",

turf-extent
===========
[![Build Status](https://travis-ci.org/Turfjs/turf-extent.svg?branch=master)](https://travis-ci.org/Turfjs/turf-extent)
Calculates the extent of all features and returns a bounding box.
```javascript
var extent = require('turf-extent')
var fs = require('fs')
var fc = JSON.parse(fs.readFileSync('/path/to/myFeatureCollection.geojson'))
var bbox = extent(fc)
console.log(extent) // [minX, minY, maxX, maxY]
```
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