{"name":"@turf/flatten","version":"3.14.2","keywords":["turf","geojson","geography","gis","featurecollection"],"author":{"name":"Tom MacWright"},"license":"MIT","_id":"@turf/flatten@3.14.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"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"a8f615360491ef841d28e008fd1b11af91285f10","tarball":"http://registry-npm.ywwl.com/@turf/flatten/download/@turf/flatten-3.14.2.tgz","integrity":"sha512-h78nYs3NsdsKLTwxDXV6WavtVXeXTY41j6EFBcloy2jDeoPXPljtWAjNQ+9v/lj0+bjF5NabiiEg0X6eF/vdsA==","signatures":[{"sig":"MEQCIFMV6097ml51AhRk37TzYY4GpvAveAcaZhj9TTsblIbrAiAqi6M61moQPFmzvdwUuitFL+INDW1eNiuOIXPmH8b11A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2904,"noattachment":false,"key":"/@turf/flatten/-/@turf/flatten-3.14.2.tgz"},"main":"index.js","_from":".","files":["index.js","index.d.ts"],"types":"index.d.ts","_shasum":"a8f615360491ef841d28e008fd1b11af91285f10","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.9.5","dependencies":{"@turf/meta":"^3.14.0","@turf/helpers":"^3.13.0","@turf/invariant":"^3.13.0"},"devDependencies":{"tape":"^4.0.0","benchmark":"^2.1.3","load-json-file":"^2.0.0","write-json-file":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flatten-3.14.2.tgz_1490499708289_0.7603241945616901","host":"packages-12-west.internal.npmjs.com"},"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":1490499708559,"_cnpm_publish_time":1490499708559,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}