Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

turf-donuts

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-donuts - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

12

package.json
{
"name": "turf-donuts",
"version": "0.0.2",
"version": "0.1.0",
"description": "",

@@ -24,13 +24,13 @@ "main": "index.js",

"devDependencies": {
"glob": "~4.0.0",
"tape": "~2.13.1"
"glob": "~4.0.4",
"tape": "~2.13.4"
},
"dependencies": {
"turf-point": "~0.1.0",
"turf-point": "~0.1.1",
"turf-featurecollection": "~0.1.0",
"turf-inside": "~0.1.1",
"turf-inside": "~0.1.4",
"lodash": "~2.4.1",
"turf-union": "0.0.0",
"turf-erase": "0.0.0"
"turf-erase": "0.1.3"
}
}

@@ -7,11 +7,31 @@ turf-donuts

###Install
```sh
npm install turf-donuts
```
###Parameters
|name|description|
|---|---|
|polygons|a FeatureCollection of overlapping polygons|
###Usage
```js
donuts(polygons)
```
###Example
```js
var donuts = require('donuts')
var js = require('fs')
var fs = require('fs')
var polys = JSON.parse(fs.readFileSync('/path/to/polys.geojson'))
var donutPolys = donuts(donutsIn, function(err, donuts)
var donutPolys = donuts(donutsIn)
console.log(donutPolys)
```
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