{"name":"@turf/line-segment","version":"6.2.0-alpha.1","keywords":["turf","line","segment"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/line-segment@6.2.0-alpha.1","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"04a6d9622cee5b230ede2011da354873be99400a","tarball":"http://registry-npm.ywwl.com/@turf/line-segment/download/@turf/line-segment-6.2.0-alpha.1.tgz","fileCount":6,"integrity":"sha512-2MT3iZ6JIDoeiAMB8XFvKM6cu994r7x2gtchQYtDFnOakkZCDPp5w8W1I6cf9YCaxNtYy2Bt5Hb50QTMmB5qUw==","signatures":[{"sig":"MEUCIHeYDecSG/XRm5RzGNq86RT17t0RZ3CEQMeMnZbQmfwOAiEA8dYzh0FZVMgOHqzCqh4zqqiNeXKUC3N0kt8rU+8PakY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11194,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefUJwCRA9TVsSAnZWagAAWSgP/jZhGIdTCEWUxLCv8pE6\nkUtiGAAhZcBMp4QFoOx0nsgbyxMow+rH8FH9bIXQGs4R33wdeK6wJX3uMW+V\noeL06JnPqg50gophuMbzxD/LL59Q2+mIvtmRt/lAbf/fwd0/4DjGqiqqp7dU\nJyspC3NG2JBZXWd8SsUVdPNM5cEvfoUgGKhgCq0RoEqQx8z1d/EHPmuQY91E\nik2MmkmELXqRC52K9VTlvJL57UO2hIIuHHy6/Kda8T1KQgJik2KUn7S4pcb1\n+CRXVQWwambyR2ENZoRlCqK/lb1Nev6sWRDv3b7aNe6oYZMwX7eh6+O/14AJ\nQ05VxitKhR0xovVjtVrH1X9pmSrdxirxMP9kCnOyn0xqKvw2kvOEOXLhQ8g8\nuuIVD0XzA6mXe7tY2Dlnh6SiJHYvuePCifKxIl/PlHuPI+l7mvHFlu7VT4SG\neiFvvnIvyNSezH7JDr3TnyWlvuSabEsTzV7HMg44aFIrRv1oG2fQDrkLGP1Q\ngTKDAWnE54DiDcWE4bqnzZVFKVvaLc6Wy7oXHYpmk7O5aKo7zeGvhUZP/TCe\n2k/4yIm5iFQayQj0x78t2fsu0zc9WLJY5lrJCVSGPSVxPdvCDYnSj7ywtU5T\nHKLS/T8Y/JRwI7l8A8Lt5G7YH6ABwuk8U8bns313x+dapTWVdOhPVG/LFaTT\n9FOl\r\n=fMaZ\r\n-----END PGP SIGNATURE-----\r\n","size":3258,"noattachment":false,"key":"/@turf/line-segment/-/@turf/line-segment-6.2.0-alpha.1.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","gitHead":"fc519c045a8931c1e14eab9160a7e28391f8da02","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 line-segment module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/meta":"^6.2.0-alpha.1","@turf/helpers":"^6.2.0-alpha.1","@turf/invariant":"^6.2.0-alpha.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","tslint":"*","benchmark":"*","typescript":"*","@types/tape":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/line-segment_6.2.0-alpha.1_1585267311813_0.48839574832362875","host":"s3://npm-registry-packages"},"readme":"# @turf/line-segment\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## lineSegment\n\nCreates a [FeatureCollection][1] of 2-vertex [LineString][2] segments from a\n[(Multi)LineString][2] or [(Multi)Polygon][3].\n\n### Parameters\n\n*   `geojson` **[GeoJSON][4]** GeoJSON Polygon or LineString\n\n### Examples\n\n```javascript\nvar polygon = turf.polygon([[[-50, 5], [-40, -10], [-50, -10], [-40, 5], [-50, 5]]]);\nvar segments = turf.lineSegment(polygon);\n\n//addToMap\nvar addToMap = [polygon, segments]\n```\n\nReturns **[FeatureCollection][1]<[LineString][2]>** 2-vertex line segments\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.3\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.6\n\n[4]: https://tools.ietf.org/html/rfc7946#section-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/line-segment\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":1585267311954,"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":1585267311954,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}