{"name":"@turf/flatten","version":"6.2.0","keywords":["turf","geojson","geography","gis","featurecollection"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/flatten@6.2.0","maintainers":[{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tmcw","email":"tom@macwright.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"deniscarriere","email":"carriere.denis@gmail.com"},{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"}],"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":"aa94c74802f2c0bcb1e616643371ba39f2365f37","tarball":"http://registry-npm.ywwl.com/@turf/flatten/download/@turf/flatten-6.2.0.tgz","fileCount":7,"integrity":"sha512-w7Z5oMpbqEH6okLd8F4bseXeRHOuzC3F4VEZBGr95R++2k2FseH8nKfvJW1XBYqmfijRbXQdDRKbO327iVoP5w==","signatures":[{"sig":"MEYCIQDBmUs9lZ/oQo6VkXQcl/FSt80BWJc3xMruDPHIwjyQtgIhAJ6Ow0gSI8z91jc4uCVU59y3XYkR0/BI8S4mRpN/QVaf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7064,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/bjPCRA9TVsSAnZWagAA424P/A5UTtP+ogA6GwCiG8hU\nVWFo5PJjeMLPZ3MSOMGDKOzKpCK5VOmbLkAtvakGtqXEKTMmEOuqIjIpAgjf\nhd7CVEhS6XunobR50aPodsNwfrwHD8plSzX1EYeeMeHE3yQk7DJdABOWyb4l\n3nKLA8CJKQGf4V1ZJgbayjiS14TarKKLQ7sNHHXuETm54aWtGzrXOnYJRNai\nNpaYL15JVGClrNvJPUhQibaBLbFiMK5MKqZ/AbVHkcONB/4517RCbciz7p6X\nZkZ1cBX25x8/BUHaxeD3OT6MW31QUkMC1poRYlE0nBj3o8nPtgWbXQ/5YurK\n6bm7GVA/K9jHJh5sHCYNfdxTZOXb7iE6nXgfpkNbPxE57ow5HvfWHvYycoT9\n+Uann7Cp0MDDE0WEseJpIpWmM7Ynk8fY9XTlfLJzWn3P0IwaaknbikiMNmpd\n0QlGAAszSxXbYNhIbcLaat082e9B9JjIgNQsSMxBgD1NswY38mNHtbWwJkFG\nW6G0wpSDljBpHOzmE9Z0B2gwUprbjEnT9zw0+/BX1LGqbpSXWvgby3bgy5M1\nZfcq52sktzacXlztekpncCSxXp6XEFtoMj6DpUbpHHtW/DZ2ZIeVNVNYvT3n\nKIjTs0Cf5UZSLJFJlZPeYjqcl9x0zjU9zOFma9bO78t0qP+ArNFVC/opNnTO\nKEvV\r\n=X+1z\r\n-----END PGP SIGNATURE-----\r\n","size":2773,"noattachment":false,"key":"/@turf/flatten/-/@turf/flatten-6.2.0.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","exports":{"import":"./dist/es/index.js","require":"./dist/js/index.js"},"gitHead":"c277baf2b967a35efec75de9ae54869d20da5288","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all test:*","bench":"node -r esm bench.js","build":"rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json","test:tape":"node -r esm test.js","test:types":"tsc --esModuleInterop --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","@turf/helpers":"^6.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/flatten_6.2.0_1610463438971_0.8155663748692383","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":1610463439149,"_cnpm_publish_time":1610463439149,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}