{"name":"@turf/flatten","version":"6.2.0-alpha.1","keywords":["turf","geojson","geography","gis","featurecollection"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/flatten@6.2.0-alpha.1","maintainers":[{"name":"deniscarriere","email":"carriere.denis@gmail.com"},{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"tmcw","email":"tom@macwright.org"}],"contributors":[{"name":"Tom MacWright","email":"@tmcw"},{"name":"Denis Carriere","email":"@DenisCarriere"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"c923b8c9839fb2ce94860402c879042033cee4b9","tarball":"http://registry-npm.ywwl.com/@turf/flatten/download/@turf/flatten-6.2.0-alpha.1.tgz","fileCount":8,"integrity":"sha512-zSJ96zCIpQsIBntxrKPZgjjWeyuoOM9zG2GmTmPD/n20pHsj5pjw6wbY3jEvoqQST0irm57uw3DlcvTqI2sPbg==","signatures":[{"sig":"MEUCIAZ7tg/xo39t+TgfbcnvFpodxEwJ0UOcSc69tlxiURxWAiEA50fJzfEKQao819b+LjgAkHPPATepge0AZ+5iY5SLDDM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefUJsCRA9TVsSAnZWagAAtxwP/3HWjytvD+8LkQWyWw4k\nJrs/IR3DiRjtxgOkuVVFEQuWd8aHnDPw1TN0HMt8RxGKaBO3GPsAcAWCEdIF\no62SJ9qkrhd8NKxrqaHpIa7VV33XXyAHJhjFNbG7MnXs9l64kZ4H35eZmh5O\naBlP/QEVGWS5b7qod30NyXrFASYOsconHF4WMGwhY2/njXrYCoTXPoiSYCAq\nlMBwD+PXxkB+XOldFU22m7QsbVwKQXv926tXKk+cccnTUaOVwllRxUnrJlDQ\nVAqBLBhI6lIKBirmYLl3uO83OIPF3mtxYcpgkLGZhMDRn/WN1kH1xuZXy2Xe\nWZAHmsphjIN5+8VYZT1wcxLCwU+/aPPe3jFlzqgYzsMwsP5yWTzbS0M4aMsy\nBJgsV190CoddMCFIDL8Q4DnnL39uXJIzIw923Px7EEC8RxRHBSef81439YV0\n4OYfRnGO3zhZopLi4p2l8cW3rWFz2mJeQWJ/ES8NUIVwpwyYoQ3QnnSfw56y\nvJjdWiOsrwJA8k2RqiKD2HavPc6yNG5RyRncscOQzAI1wJpC67LEka6NWU9F\nF7bJyMLkXyBzCtqTIvvbFj73K/KFePTJdL+oO296m66ldDk91pAcZ6vTsQUO\nioPB9H1Qf23IdFibydJN9ze0EK+U8+jhyBDHFlo73KdejtTMd/fXz3x2OV4J\n0C5m\r\n=hXbY\r\n-----END PGP SIGNATURE-----\r\n","size":2789,"noattachment":false,"key":"/@turf/flatten/-/@turf/flatten-6.2.0-alpha.1.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","gitHead":"fc519c045a8931c1e14eab9160a7e28391f8da02","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all prepare test:*","bench":"npm-run-all prepare bench:run","prepare":"rollup -c ../../rollup.config.js","posttest":"node -r esm ../../scripts/validate-es5-dependencies.js","bench:run":"node bench.js","test:tape":"node -r esm test.js","test:types":"tsc --noEmit types.ts"},"_npmUser":{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/3.20.2/node@v13.10.1+x64 (darwin)","description":"turf flatten module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/meta":"^6.2.0-alpha.1","@turf/helpers":"^6.2.0-alpha.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/flatten_6.2.0-alpha.1_1585267307911_0.6610860014079014","host":"s3://npm-registry-packages"},"readme":"# @turf/flatten\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## flatten\n\nFlattens any [GeoJSON][1] to a [FeatureCollection][2] inspired by [geojson-flatten][3].\n\n### Parameters\n\n*   `geojson` **[GeoJSON][4]** any valid GeoJSON Object\n\n### Examples\n\n```javascript\nvar multiGeometry = turf.multiPolygon([\n  [[[102.0, 2.0], [103.0, 2.0], [103.0, 3.0], [102.0, 3.0], [102.0, 2.0]]],\n  [[[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]],\n  [[100.2, 0.2], [100.8, 0.2], [100.8, 0.8], [100.2, 0.8], [100.2, 0.2]]]\n]);\n\nvar flatten = turf.flatten(multiGeometry);\n\n//addToMap\nvar addToMap = [flatten]\n```\n\nReturns **[FeatureCollection][5]\\<any>** all Multi-Geometries are flattened into single Features\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3.3\n\n[3]: https://github.com/tmcw/geojson-flatten\n\n[4]: https://tools.ietf.org/html/rfc7946#section-3\n\n[5]: https://tools.ietf.org/html/rfc7946#section-3.3\n\n<!-- This file is automatically generated. Please don't edit it directly. If you find an error, edit the source file of the module in question (likely index.js or index.ts), and re-run \"yarn docs\" from the root of the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](https://turfjs.org/), an open source module collection dedicated to geographic algorithms. It is maintained in the [Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create PRs and issues.\n\n### Installation\n\nInstall this single module individually:\n\n```sh\n$ npm install @turf/flatten\n```\n\nOr install the all-encompassing @turf/turf module that includes all modules as functions:\n\n```sh\n$ npm install @turf/turf\n```\n","publish_time":1585267308028,"_cnpm_publish_time":1585267308028,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}