{"name":"@turf/flatten","version":"3.10.3","keywords":["turf","geojson","geography","gis","featurecollection"],"author":{"name":"Tom MacWright"},"license":"MIT","_id":"@turf/flatten@3.10.3","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":"3fe97565902082542ef72dc418e3032bc3ec61e1","tarball":"http://registry-npm.ywwl.com/@turf/flatten/download/@turf/flatten-3.10.3.tgz","integrity":"sha512-30cSC2yIeXO//lzdejb8Da+uaUiTizg4r6bZ4xgo9sJxSPcN3ASV256YQzxEj447WADpKRa6KCQec4Uh9iWzVA==","signatures":[{"sig":"MEYCIQDh1rwK271PChCkisfqPtavE0xGWcVmnvhoByS/AigvPQIhALixhEWsd7Mmkwnv0aQFnA5eo9GbGSLkPOZ2GWvusu44","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":3045,"noattachment":false,"key":"/@turf/flatten/-/@turf/flatten-3.10.3.tgz"},"main":"index.js","_from":".","_shasum":"3fe97565902082542ef72dc418e3032bc3ec61e1","scripts":{"test":"node test.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.js flatten module for converting multipart geometries to singlepart.","directories":{},"_nodeVersion":"6.9.5","dependencies":{"@turf/helpers":"^3.10.3","geojson-flatten":"^0.1.0"},"devDependencies":{"tape":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flatten-3.10.3.tgz_1487624141117_0.0005944017320871353","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":1487624141339,"_cnpm_publish_time":1487624141339,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}