{"name":"@turf/polygon-to-line","version":"6.4.0","keywords":["turf","gis","line","linestring","polygon"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/polygon-to-line@6.4.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"95217c9dd3e3990aa1cbedaf328de8148ce80948","tarball":"http://registry-npm.ywwl.com/@turf/polygon-to-line/download/@turf/polygon-to-line-6.4.0.tgz","fileCount":7,"integrity":"sha512-4Bp/Nl6Ew5P9z/aEqxBTNBaMHHlhNj+l8xeJ/Rm5C6xASQxZ6M/3skRQiRU68A9kFuW/205KklFgT4pnKzgycQ==","signatures":[{"sig":"MEQCIDBCjyQ3HUYwJaM82UWme5RX0p49aI6VILkVxvC+UgJ+AiA7h6wO8coIN7p6SUE6TbB180sTYGJvFm5oxr+ijt4NOw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11451,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgy06BCRA9TVsSAnZWagAA7SsP/iSCbuBlZZ9cRAWeaSMP\nPUfs1ikvtvJquIrYihSN9NMoAytxFzXXww5KRG5E+3bnyKaQs8LMrZEbcWyG\nZ5fUEB2NdCPcbQ8g6EW6oIHn52j+7zPtISQh1eXcE6aZlI18a0wG3dXI1fPv\nVcDeMA7y8Lie4ZI6M0y2c3SGIEimTuSSbxyUr4RKhroGlPzGOMb0wWkG5rQT\n1kNHO5KpSFaUa0fKx9IFA7Hs0dljiHl2NsfWTkcVnmTbcK2bJo56Lq+5B8gp\nJTJ2NS34A2+kgC+MxvBBYPE44A15FN0awAqxi2NOxhRTHtlMfaYDK9NoHbrW\nZEGsNxJuvYV6XayzsPVAFUtVebOHPQ1zd0LUup0iR3qQs3CYyB5LTDlq9QzL\nm5QD61RbSfLUq1pf7StLsUzbFiyip8gBdBIOSH+ZTnqBLus2nV0rZc4viNsp\nObWXeQPZ2K91fYJXa1DLeQsZT3Rc0A4uwEHjWeGXFJis/VUXpL1qNQeUS20k\ng3q4wGoV4ezG+QAbfSC9TcUHWKdKcTUmPQlJg3yUGCi8AA+IqqC9FXN/6EbO\nw6Vu68V8WqxRf6hgzev3Vthx5Fwl/+7WG9TK+v2Dshf04axInzHCA88M6JZ4\nTOxVGycediFhQ9iTFo2ELuCD+W6nh4JqsMVe9BumCdS0Rk6uI/FCzug+fkIH\nsMti\r\n=rnA9\r\n-----END PGP SIGNATURE-----\r\n","size":3344,"noattachment":false,"key":"/@turf/polygon-to-line/-/@turf/polygon-to-line-6.4.0.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","exports":{".":{"import":"./dist/es/index.js","require":"./dist/js/index.js"},"./package.json":"./package.json"},"gitHead":"1e62773cfc88c627cca8effcb5c14cfb65a905ac","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all test:*","bench":"ts-node bench.js","build":"npm-run-all build:*","build:es":"tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json","build:js":"tsc","test:tape":"ts-node -r esm test.js"},"_npmUser":{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/3.20.2/node@v14.14.0+x64 (darwin)","description":"turf polygon-to-line module","directories":{},"sideEffects":false,"_nodeVersion":"14.14.0","dependencies":{"@turf/helpers":"^6.4.0","@turf/invariant":"^6.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","tslint":"*","ts-node":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/polygon-to-line_6.4.0_1623936640718_0.4727465466416976","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":1623936640849,"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":1623936640849,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}