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

@turf/tesselate

Package Overview
Dependencies
Maintainers
6
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/tesselate - npm Package Compare versions

Comparing version 5.1.5 to 6.2.0-alpha.0

dist/es/index.js

59

package.json
{
"name": "@turf/tesselate",
"version": "5.1.5",
"version": "6.2.0-alpha.0",
"description": "turf tesselate module",
"main": "main.js",
"module": "main.es.js",
"types": "index.d.ts",
"files": [
"index.js",
"index.d.ts",
"main.js",
"main.es.js"
"author": "Turf Authors",
"contributors": [
"Abel Vázquez <@AbelVM>",
"Morgan Herlocker <@morganherlocker>",
"Tom MacWright <@tmcw>",
"Vladimir Agafonkin <@mourner>"
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"docs": "node ../../scripts/generate-readmes"
"license": "MIT",
"bugs": {
"url": "https://github.com/Turfjs/turf/issues"
},
"homepage": "https://github.com/Turfjs/turf",
"repository": {

@@ -33,16 +29,20 @@ "type": "git",

],
"author": "Turf Authors",
"contributors": [
"Abel Vázquez <@AbelVM>",
"Morgan Herlocker <@morganherlocker>",
"Tom MacWright <@tmcw>",
"Vladimir Agafonkin <@mourner>"
"main": "dist/js/index.js",
"module": "dist/es/index.js",
"types": "index.d.ts",
"sideEffects": false,
"files": [
"dist",
"index.d.ts"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/Turfjs/turf/issues"
"scripts": {
"bench": "npm-run-all prepare bench:run",
"bench:run": "node bench.js",
"docs": "node ../../scripts/generate-readmes",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"prepare": "rollup -c ../../rollup.config.js",
"test": "npm-run-all prepare test:*",
"test:tape": "node -r esm test.js"
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"benchmark": "*",

@@ -53,9 +53,6 @@ "rollup": "*",

"dependencies": {
"@turf/helpers": "^5.1.5",
"@turf/helpers": "^6.2.0-alpha.0",
"earcut": "^2.0.0"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
"gitHead": "23b651deaa1ca6a0960d0142aea620b7cc6a076d"
}

@@ -7,8 +7,8 @@ # @turf/tesselate

Tesselates a [Feature&lt;Polygon>](Feature<Polygon>) into a [FeatureCollection&lt;Polygon>](FeatureCollection<Polygon>) of triangles
using [earcut](https://github.com/mapbox/earcut).
Tesselates a [Feature&lt;Polygon>][1] into a [FeatureCollection&lt;Polygon>][2] of triangles
using [earcut][3].
**Parameters**
- `poly` **[Feature](https://tools.ietf.org/html/rfc7946#section-3.2)&lt;[Polygon](https://tools.ietf.org/html/rfc7946#section-3.1.6)>** the polygon to tesselate
- `poly` **[Feature][4]&lt;[Polygon][5]>** the polygon to tesselate

@@ -25,4 +25,16 @@ **Examples**

Returns **[FeatureCollection](https://tools.ietf.org/html/rfc7946#section-3.3)&lt;[Polygon](https://tools.ietf.org/html/rfc7946#section-3.1.6)>** a geometrycollection feature
Returns **[FeatureCollection][6]&lt;[Polygon][5]>** a geometrycollection feature
[1]: Feature<Polygon>
[2]: FeatureCollection<Polygon>
[3]: https://github.com/mapbox/earcut
[4]: https://tools.ietf.org/html/rfc7946#section-3.2
[5]: https://tools.ietf.org/html/rfc7946#section-3.1.6
[6]: https://tools.ietf.org/html/rfc7946#section-3.3
<!-- This file is automatically generated. Please don't edit it directly:

@@ -29,0 +41,0 @@ if you find an error, edit the source file (likely index.js), and re-run

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