Socket
Socket
Sign inDemoInstall

@turf/flatten

Package Overview
Dependencies
Maintainers
6
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/flatten - npm Package Compare versions

Comparing version 5.1.5 to 6.2.0-alpha.0

dist/es/index.js

58

package.json
{
"name": "@turf/flatten",
"version": "5.1.5",
"version": "6.2.0-alpha.0",
"description": "turf flatten 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": [
"Tom MacWright <@tmcw>",
"Denis Carriere <@DenisCarriere>"
],
"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": {

@@ -32,14 +26,21 @@ "type": "git",

],
"author": "Turf Authors",
"contributors": [
"Tom MacWright <@tmcw>",
"Denis Carriere <@DenisCarriere>"
"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",
"test:types": "tsc --noEmit types.ts"
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"benchmark": "*",

@@ -52,9 +53,6 @@ "load-json-file": "*",

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

@@ -7,7 +7,7 @@ # @turf/flatten

Flattens any [GeoJSON](https://tools.ietf.org/html/rfc7946#section-3) to a [FeatureCollection](https://tools.ietf.org/html/rfc7946#section-3.3) inspired by [geojson-flatten](https://github.com/tmcw/geojson-flatten).
Flattens any [GeoJSON][1] to a [FeatureCollection][2] inspired by [geojson-flatten][3].
**Parameters**
- `geojson` **[GeoJSON](https://tools.ietf.org/html/rfc7946#section-3)** any valid GeoJSON Object
- `geojson` **[GeoJSON][4]** any valid GeoJSON Object

@@ -29,4 +29,14 @@ **Examples**

Returns **[FeatureCollection](https://tools.ietf.org/html/rfc7946#section-3.3)&lt;any>** all Multi-Geometries are flattened into single Features
Returns **[FeatureCollection][5]&lt;any>** all Multi-Geometries are flattened into single Features
[1]: https://tools.ietf.org/html/rfc7946#section-3
[2]: https://tools.ietf.org/html/rfc7946#section-3.3
[3]: https://github.com/tmcw/geojson-flatten
[4]: https://tools.ietf.org/html/rfc7946#section-3
[5]: https://tools.ietf.org/html/rfc7946#section-3.3
<!-- This file is automatically generated. Please don't edit it directly:

@@ -33,0 +43,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