{"name":"@turf/line-segment","version":"6.3.0","keywords":["turf","line","segment"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/line-segment@6.3.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"b37d6877ee4425ebc12698860e7d355d1bf2ba9b","tarball":"http://registry-npm.ywwl.com/@turf/line-segment/download/@turf/line-segment-6.3.0.tgz","fileCount":7,"integrity":"sha512-M+aDy83V+E7jYWNaf+b+A88yhnMrJhyg/lhAj6mU6UeB2PbruXB2qgSmmVDSE2dIknOvZZuIWNzEzUI07RO2kw==","signatures":[{"sig":"MEQCIAmlgbbpIz3+lqS4QfgkZymlXSnt6ZoCJTOAzjJ446SOAiAFeylg7EPJAVLl+Qo0anQZxiJqyRij78j9trYD0pBL9A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11356,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCECeCRA9TVsSAnZWagAAoHcP/1atOKK6cJTZBmZZn2yp\ndZHQavRLirshSXqendB2mtry9Tt9F2WoBHKbD0Kh9gAzRwTkWcObjfYTy3ob\nX3ySfqdzm2xmo9FJj0TH+z8NpSMWYNQIQr4/iu2rSiMD5pFJhoW4PwSknliA\nRmyOapYU3j6i7jRCfDnZPriHaMUH9JA6igAbIFVKKlFF5fK6wEHgK6Et3zjV\nE5amQ3LPUmzY9VLBECPfOxEflegHexxusgTDJxNu8IWjunudOsakYnRZ7Sri\nMHd9M/KuNxs8q+n/BxBmcbM4FoBKKIG8ILbrMW+1rHOBZFWu+J924GF8eYXD\nxRIy1yKd03RGSYx2ebtV3DzbJb4arpjRVWdykNnKNQhDnwjWvMx7OO2+20fI\nDGhNaD/hohcryxpYpqu5APnpgiQHuX9tCMwi/OLU05vx9cmEC/EBqPF9cI5y\nUmIpoTeRwD/ofvfWvamZr9RYQdMYX3jodC/cvTZv1YTAmnlMTcQzqDN5K3uS\naL5ykACGI7br2U1TJck5id6LezjP8o6j5Lf4jj6kiAPTRUrWcfl/I7H4RzW7\nNSOg3ImaCDZPk+Gtfo49Wk/yiFLQz+SwJgohiIia+Dms+D5CKswq5odvHRRJ\nXZZgqMw9IJzkHnAQQxiFSWXt8w9GNWV8ob6P/AvpGctiJ8vvKccQmJYuUoD4\nvxw8\r\n=qZ3L\r\n-----END PGP SIGNATURE-----\r\n","size":3361,"noattachment":false,"key":"/@turf/line-segment/-/@turf/line-segment-6.3.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":"57c8877e1e2d67effc2cdd23385c02b2a6615a49","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":"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.3.0","@turf/helpers":"^6.3.0","@turf/invariant":"^6.3.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/line-segment_6.3.0_1611153565704_0.06317649080822241","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":1611153565817,"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":1611153565817,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}