{"name":"@turf/flatten","version":"5.1.5","keywords":["turf","geojson","geography","gis","featurecollection"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/flatten@5.1.5","maintainers":[{"name":"deniscarriere","email":"carriere.denis@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"morganherlocker","email":"morgan.herlocker@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":"da2927067133ed6169b0b9d607b9215688aa1358","tarball":"http://registry-npm.ywwl.com/@turf/flatten/download/@turf/flatten-5.1.5.tgz","integrity":"sha512-aagHz5tjHmOtb8eMb5fd10+HJwdlhkhsPql1vRXQNnpv0Q9xL/4SsbvXZ6lPqkRAjiZuy087mvaz+ERml76/jg==","signatures":[{"sig":"MEUCIQDsWcGGPYee+hx1ASozqg11a3VZgqcKPmetGPF9UF1yRgIgFwJVQ9K/hu/JuPy5+KboILJ4flXtm1iw4W5ZInld+48=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2629,"noattachment":false,"key":"/@turf/flatten/-/@turf/flatten-5.1.5.tgz"},"main":"main.js","_from":".","files":["index.js","index.d.ts","main.js","main.es.js"],"types":"index.d.ts","module":"main.es.js","_shasum":"da2927067133ed6169b0b9d607b9215688aa1358","scripts":{"docs":"node ../../scripts/generate-readmes","test":"node -r @std/esm test.js","bench":"node -r @std/esm bench.js","pretest":"rollup -c ../../rollup.config.js","posttest":"node -r @std/esm ../../scripts/validate-es5-dependencies.js"},"@std/esm":{"cjs":true,"esm":"js"},"_npmUser":{"name":"deniscarriere","email":"carriere.denis@gmail.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"3.10.10","description":"turf flatten module","directories":{},"_nodeVersion":"6.11.2","dependencies":{"@turf/meta":"^5.1.5","@turf/helpers":"^5.1.5"},"devDependencies":{"tape":"*","rollup":"*","@std/esm":"*","benchmark":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/flatten-5.1.5.tgz_1512882671708_0.6368487875442952","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":1512882671802,"_cnpm_publish_time":1512882671802,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}