{"name":"@turf/polygon-to-line","version":"6.2.0-alpha.0","keywords":["turf","gis","line","linestring","polygon"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/polygon-to-line@6.2.0-alpha.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"5573aa1ecfba5d77ad4a9a9af3e5885028e7920d","tarball":"http://registry-npm.ywwl.com/@turf/polygon-to-line/download/@turf/polygon-to-line-6.2.0-alpha.0.tgz","fileCount":6,"integrity":"sha512-eEJYqvC9d0F6Bab/CbSSzkNxxnaRdu+wLilpnmVTPaOTDGatrER8hIR7m+xcMHaTzU10a1SzBmr3CrfIZDkxlw==","signatures":[{"sig":"MEUCIG2jbjAjZ1QUtjDR+7G7joUCpJGICa4PBZsiRgaVi6FkAiEAq+MVbf5ZacQ+HJKlIdtQmC2gPVgXU1AScQ3jETQuhnM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefS4qCRA9TVsSAnZWagAA4CoP/jUsBIC2ZOBdRrWxgujp\nT4FgdYqVCUTre5Y6xwGJkflQnxDftDyI4cWFAmN5TzvgpKySFXQVTDF2iFZR\nOMtDTWCw2BDOD9iM+gwJ8IQdCqtdNz7fs5ybk5tJ85do950Fr8dmQzl1Seuu\nQXg8npoEBmWlYWTDql+4IMrfR5wMGvnPs/h3on/CSIU3uNldsOnzknrvzYNn\naVOy2k9Hc8AnEfap6es5JAIKZIw0ltpzVcyT//n6kPuYpfeI4kxydrLJ51F0\nLt5yN8wx7PcPRQb50onTwRcN6Nrmb98vnCYfqtChCiqSRLq8eO+NFt1Ez5iS\n7JoS4r1lCh7UN7lSaE/YlOpVDBm2ajgqgBvXn3QdyO/2av4bPwlXr675ZkO9\nFXctNPro4oSfCsEW7c6kXoXt8blD4Nh5DK55qWnOs1P8IU+3ZkeWXw3vzJc+\nIosJmEsjc2/8WMGHdhgbm+Y9+8uhAxhx4jfacCXqmdeH66oM5qgPoOO+1QMN\nxfLCmrkyH0f/tFNg984DON6phsdfIOmNg5sPIbi1TL7vCBcKu+S/j5yMIZak\nkxBO3X05r4j9XA6U8iR3GTmk8s2T8PnuTGHvMahbBpDzgmHltAbIPx31Q3GL\nCuHPRhitIBKqqgYCHQ+U80ir3ih7+LBJW4YrMUMjBDwFVKVJc/vNkzTrC23a\n2xK4\r\n=obov\r\n-----END PGP SIGNATURE-----\r\n","size":3205,"noattachment":false,"key":"/@turf/polygon-to-line/-/@turf/polygon-to-line-6.2.0-alpha.0.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","gitHead":"23b651deaa1ca6a0960d0142aea620b7cc6a076d","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all prepare test:*","bench":"npm-run-all prepare bench:run","prepare":"npm-run-all prepare:*","bench:run":"node bench.js","test:tape":"node -r esm test.js","prepare:es":"tsc --outDir dist/es --module esnext --declaration false","prepare:js":"tsc"},"_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 polygon-to-line module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/helpers":"^6.2.0-alpha.0","@turf/invariant":"^6.2.0-alpha.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","tslint":"*","benchmark":"*","typescript":"*","@types/tape":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/polygon-to-line_6.2.0-alpha.0_1585262121870_0.7444114806570383","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":1585262122002,"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":1585262122002,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}