New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@turf/simplify

Package Overview
Dependencies
Maintainers
7
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/simplify - npm Package Compare versions

Comparing version

to
7.0.0-alpha.0

16

package.json
{
"name": "@turf/simplify",
"version": "6.5.0",
"version": "7.0.0-alpha.0",
"description": "turf simplify module",

@@ -52,6 +52,6 @@ "author": "Turf Authors",

"test:tape": "node -r esm test.js",
"test:types": "tsc --esModuleInterop --noEmit types.ts"
"test:types": "tsc --esModuleInterop --noEmit --strict types.ts"
},
"devDependencies": {
"@turf/truncate": "^6.5.0",
"@turf/truncate": "^7.0.0-alpha.0",
"benchmark": "*",

@@ -65,8 +65,8 @@ "load-json-file": "*",

"dependencies": {
"@turf/clean-coords": "^6.5.0",
"@turf/clone": "^6.5.0",
"@turf/helpers": "^6.5.0",
"@turf/meta": "^6.5.0"
"@turf/clean-coords": "^7.0.0-alpha.0",
"@turf/clone": "^7.0.0-alpha.0",
"@turf/helpers": "^7.0.0-alpha.0",
"@turf/meta": "^7.0.0-alpha.0"
},
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
"gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189"
}

@@ -10,12 +10,13 @@ # @turf/simplify

**Parameters**
### Parameters
- `geojson` **[GeoJSON][3]** object to be simplified
- `options` **[Object][4]** Optional parameters (optional, default `{}`)
- `options.tolerance` **[number][5]** simplification tolerance (optional, default `1`)
- `options.highQuality` **[boolean][6]** whether or not to spend more time to create a higher-quality simplification with a different algorithm (optional, default `false`)
- `options.mutate` **[boolean][6]** allows GeoJSON input to be mutated (significant performance increase if true) (optional, default `false`)
* `geojson` **[GeoJSON][3]** object to be simplified
* `options` **[Object][4]** Optional parameters (optional, default `{}`)
**Examples**
* `options.tolerance` **[number][5]** simplification tolerance (optional, default `1`)
* `options.highQuality` **[boolean][6]** whether or not to spend more time to create a higher-quality simplification with a different algorithm (optional, default `false`)
* `options.mutate` **[boolean][6]** allows GeoJSON input to be mutated (significant performance increase if true) (optional, default `false`)
### Examples
```javascript

@@ -22,0 +23,0 @@ var geojson = turf.polygon([[