# turf-donuts

> turf-donuts =============== [![build status](https://secure.travis-ci.org/Turfjs/turf-donuts.png)](http://travis-ci.org/Turfjs/turf-donuts)

Latest version **0.1.0** (published 2014-07-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install turf-donuts
pnpm add turf-donuts
yarn add turf-donuts
bun add turf-donuts
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-07-22 |
| First published | 2014-05-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| Author | Morgan Herlocker |
| Maintainers | tmcw, morganherlocker |
| Keywords | turf, gis |

## Links

- npm: https://www.npmjs.com/package/turf-donuts
- Repository: https://github.com/Turfjs/turf-donuts
- Issues: https://github.com/Turfjs/turf-donuts/issues
- npm.io page: https://npm.io/package/turf-donuts

## Dependencies (6)

- [lodash](https://npm.io/package/lodash.md) ~2.4.1
- [turf-erase](https://npm.io/package/turf-erase.md) 0.1.3
- [turf-point](https://npm.io/package/turf-point.md) ~0.1.1
- [turf-union](https://npm.io/package/turf-union.md) 0.0.0
- [turf-inside](https://npm.io/package/turf-inside.md) ~0.1.4
- [turf-featurecollection](https://npm.io/package/turf-featurecollection.md) ~0.1.0

## Recent versions

- 0.1.0 (latest) — 2014-07-22
- 0.0.2 — 2014-06-03
- 0.0.1 — 2014-06-03
- 0.0.0 — 2014-05-29

## README

turf-donuts
===============
[![build status](https://secure.travis-ci.org/Turfjs/turf-donuts.png)](http://travis-ci.org/Turfjs/turf-donuts)

Takes a set of overlapping polygons and returns non overlapping 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 fs = require('fs')

var polys = JSON.parse(fs.readFileSync('/path/to/polys.geojson'))

var donutPolys = donuts(donutsIn)

console.log(donutPolys)
```

---
_Source: https://npm.io/package/turf-donuts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
