{"name":"@turf/polygon-to-line","version":"5.0.0","keywords":["turf","gis","line","linestring","polygon"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/polygon-to-line@5.0.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"0e6029e5718ae5630fcc61f63ad4e8e9017e84db","tarball":"http://registry-npm.ywwl.com/@turf/polygon-to-line/download/@turf/polygon-to-line-5.0.0.tgz","integrity":"sha512-0+zZ04X2ayDqcrIJddJovrl4FSbdZNkf/1yLUgwlBpyejyToRSm3ms3i7/CrzgAERw7wU2iyPNxuvW73MCEEVw==","signatures":[{"sig":"MEUCIFp0D2PvLDQG9NYzD51XycEeon8J+qUtPbjp0/MldB3sAiEAlskYy63OcgwYCci4VTZzVQdqkFSnigZVzd4DKx9RXaI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2966,"noattachment":false,"key":"/@turf/polygon-to-line/-/@turf/polygon-to-line-5.0.0.tgz"},"main":"main","_from":".","files":["index.js","index.d.ts","main.js"],"types":"index.d.ts","module":"index","_shasum":"0e6029e5718ae5630fcc61f63ad4e8e9017e84db","scripts":{"test":"node -r @std/esm test.js","bench":"node -r @std/esm bench.js","pretest":"rollup -c ../../rollup.config.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 polygon-to-line module","directories":{},"jsnext:main":"index","_nodeVersion":"6.11.2","dependencies":{"@turf/helpers":"5.x","@turf/invariant":"5.x"},"devDependencies":{"tape":"*","rollup":"*","@std/esm":"*","benchmark":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/polygon-to-line-5.0.0.tgz_1509463028047_0.5689726078417152","host":"s3://npm-registry-packages"},"readme":"# @turf/polygon-to-line\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## polygonToLine\n\nConverts a [Polygon][1] to [(Multi)LineString][2] or [MultiPolygon][3] to a\n[FeatureCollection][4] of [(Multi)LineString][2].\n\n### Parameters\n\n*   `poly` **[Feature][5]<([Polygon][1] | [MultiPolygon][3])>** Feature to convert\n*   `options` **[Object][6]** Optional parameters (optional, default `{}`)\n\n    *   `options.properties` **[Object][6]** translates GeoJSON properties to Feature (optional, default `{}`)\n\n### Examples\n\n```javascript\nvar poly = turf.polygon([[[125, -30], [145, -30], [145, -20], [125, -20], [125, -30]]]);\n\nvar line = turf.polygonToLine(poly);\n\n//addToMap\nvar addToMap = [line];\n```\n\nReturns **([FeatureCollection][4] | [Feature][5]<([LineString][2] | MultiLinestring)>)** converted (Multi)Polygon to (Multi)LineString\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.1.6\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3.1.4\n\n[3]: https://tools.ietf.org/html/rfc7946#section-3.1.7\n\n[4]: https://tools.ietf.org/html/rfc7946#section-3.3\n\n[5]: https://tools.ietf.org/html/rfc7946#section-3.2\n\n[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\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/polygon-to-line\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":1509463028165,"maintainers":[{"name":"smallsaucepan","email":"james@smallsaucepan.com"},{"name":"morgan.herlocker","email":"morganherlocker@gmail.com"},{"name":"twelch","email":"tim.j.welch@gmail.com"},{"name":"jamesmilneruk","email":"jamesmilner22@hotmail.com"},{"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":"mdfedderly","email":"mdfedderly@mdfedderly.com"}],"_cnpm_publish_time":1509463028165,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}