Socket
Socket
Sign inDemoInstall

turf-simplify

Package Overview
Dependencies
Maintainers
8
Versions
11
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 1.0.0 to 1.0.1

18

index.js
var simplify = require('simplify-js');
/**
* Simplifies a {GeoJSONFeature} containing a {GeoJSONLineString} or
* {GeoJSONPolygon} geometry. Internally uses simplify-js to perform
* simplification.
*
* @module turf/simplify
* @param {GeoJSONFeature} feature - a feature to be simplified
* @param {number} tolerance - simplification tolerance
* @param {boolean} highQuality - whether or not to spend more time to create
* a higher-quality simplification with a different algorithm
* @return {GeoJSONFeature} output
* @example
* var quantization = 50;
* var minimumArea = 0;
* var simplified = turf.simplify(polys, quantization, minimumArea);
*/
module.exports = function(feature, tolerance, highQuality){

@@ -41,2 +57,2 @@ if(feature.geometry.type === 'LineString') {

};
}
}

2

package.json
{
"name": "turf-simplify",
"version": "1.0.0",
"version": "1.0.1",
"description": "simplify geographic shapes",

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

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