{"name":"@turf/flatten","version":"6.2.0-alpha.0","keywords":["turf","geojson","geography","gis","featurecollection"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/flatten@6.2.0-alpha.0","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":"fa5846937e8095ea28d452d34c86b1b71e7d021e","tarball":"http://registry-npm.ywwl.com/@turf/flatten/download/@turf/flatten-6.2.0-alpha.0.tgz","fileCount":8,"integrity":"sha512-zqZsjzKi7VcgaJy+aTuRvOGOPv+TT+0yV+IZQSUTxNQqLAZaPfyrHURqGUP346O/Xe5sqZeI71Z+aTjnb9wd9g==","signatures":[{"sig":"MEQCIFIDNkx9X6JiCtYarwG1KMkBe2Gt8yGj7LxmLI7ie//uAiA4/2fCc8Zcqa8hIRTa+z+KzLi/i3ZkfWyVVKl4p8jkAA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9176,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefS4wCRA9TVsSAnZWagAA9IIQAJAsKFlUFwEucwBRRXDo\noQOX6qK2UjSjlDGERHc7BgszXMmGp+XCN3uqTm0EhyEe6VV/iKysoM1U5fxV\nL6UcWegWWLDV+vVNnmcgyQNwKjBqlrAeNZ9U16K5rMrj/bIznEdFSX1KrNht\nSlY0OYjQCtvo6lf5PD7Hj7qahZYaaGc4itYqkwkGhLZtXDX9NXByullAv+ub\nnj35W1Mg+tg+84dWVNKpWKznykFzV0NDHEJ10mEc3u6KQY+aGwJO8N+LnM4W\nc8wiS5UF4s1BL+IbJvFDT6EQMSChnZfhS6eQUONWzs6KpFoO8bWvDSsozJkd\nU96xT3xugqe0acpBYrgTezVt1bS0E2724yikczvZbyPuYlDNoXMgYcGOejce\nkouP6Nan9xm3JUT082wMJ0d44c4qiHL9eaCalsdJVbAQMhyH1JLBTGhViaA5\npSb5VuMFSG7pbfCcaa2tsABTSs/yNiw4gqTIPMNjznYfQ69aOuAB1goSRmPU\nd+P88lUzOc1AoghuydAjE8tkJFBxghFsBWLTQO+GksuDJA2XMZA0wI3wqgY3\nYSefDY7BguoQOm7Ib3bX2bt9UIb9JgTJvU8aurGyCJd1O6PmgqdlpKuy/KSg\ncLl1qKykFz7wTZKpaDyVdt6doQzV9YaOgTu8NIJJ+yVvVmlPO1KDRrEF5Oon\nEpM9\r\n=AHLv\r\n-----END PGP SIGNATURE-----\r\n","size":2768,"noattachment":false,"key":"/@turf/flatten/-/@turf/flatten-6.2.0-alpha.0.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","gitHead":"23b651deaa1ca6a0960d0142aea620b7cc6a076d","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.0","@turf/helpers":"^6.2.0-alpha.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/flatten_6.2.0-alpha.0_1585262127652_0.06563204342414863","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":1585262127857,"_cnpm_publish_time":1585262127857,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}