{"name":"@turf/flatten","version":"4.5.2","keywords":["turf","geojson","geography","gis","featurecollection"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/flatten@4.5.2","maintainers":[{"name":"deniscarriere","email":"carriere.denis@gmail.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"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":"e93db6736fb4f4b7ac86124871726af23ed3dc8c","tarball":"http://registry-npm.ywwl.com/@turf/flatten/download/@turf/flatten-4.5.2.tgz","integrity":"sha512-v1nHlas1orkWAoJ7BDQOc3+fs5GyYFJUW9PvNRtP3IY+UvMEz8Y0DfXOW2xAeJGGASOO/kSHgFj6RTz+b3Xh6A==","signatures":[{"sig":"MEQCIF8Qu1FmVdIXXhK6lvs2U2HNcp2whZWb0oyhGWodbd6UAiBVfljn2fxwK4lI2fgBIAwQ5JCm8MU/qkXEZ5n0qFdnXA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2491,"noattachment":false,"key":"/@turf/flatten/-/@turf/flatten-4.5.2.tgz"},"main":"index.js","_from":".","files":["index.js","index.d.ts"],"types":"index.d.ts","_shasum":"e93db6736fb4f4b7ac86124871726af23ed3dc8c","scripts":{"test":"node test.js","bench":"node bench.js"},"_npmUser":{"name":"deniscarriere","email":"carriere.denis@gmail.com"},"repository":{"url":"git+https://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"3.10.10","description":"turf flatten module","directories":{},"_nodeVersion":"6.10.3","dependencies":{"@turf/meta":"^4.5.2","@turf/helpers":"^4.5.2"},"devDependencies":{"tape":"^4.6.3","benchmark":"^2.1.4","load-json-file":"^2.0.0","write-json-file":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flatten-4.5.2.tgz_1498843395028_0.2237914043944329","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":1498843395125,"_cnpm_publish_time":1498843395125,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}