{"name":"@turf/line-segment","version":"6.4.0","keywords":["turf","line","segment"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/line-segment@6.4.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"1805e65f5067a6dd095964fa64976e46bafcf8db","tarball":"http://registry-npm.ywwl.com/@turf/line-segment/download/@turf/line-segment-6.4.0.tgz","fileCount":7,"integrity":"sha512-avtrD2mZd0z+tbOK+qirNASQ79XWVaCDP7Dy2/QHv68ruWdp839QwO4/ZssRwTTkTPIwS9bLjon1hUIFLGRi5w==","signatures":[{"sig":"MEUCIQCMu7UlSI1IM7X9inrjKZcycoFDOOyIA6SSj79WqX2OEgIgfM3IsiPnDy97dkbhFy1PYyp92p3F8SDWbSMEqnWTA8g=","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\nwsFcBAEBCAAQBQJgy06HCRA9TVsSAnZWagAAdecQAJDCThgJ6RtPhhz4jW5q\n9hqZr2EduCJa3TU+n5n0VPcxkJ8qEDqQcszQAdNYVnCmCEzThc110JhAYhEJ\nxOEvyOYedp8yqapCDX/eVmoiZs4K5tQl4vnlCZ1bxRvpzziTi4xye7/YERch\n4uyFiH51+WSplcOrpI3eI+tJ6WRyCoAR53QO6wQYO7nrX0d9lDOAkbHP3YVK\no9sbY1CmHaHlKbPdjqxax5IpFZkH707SpX1Dube4y4CTKutytgkhW6ZENCbj\nZu388iJ7Nl5u18xPBzRAp32J82TwQ9do1S0YctKMO/qZ9CzxIcd39F7k+pF6\np1QfrF+eRSkHXucAADQeiJy9WaPjnchrxGy0Wd45Lf4/C6shcuKgMlH/NYKp\n6AYnntlpuKXKcBRElipN+bWWV4WpUaqe3gf4nxjZj/jp81CmyV9STX744Zzl\nUVjkFr11AlJAhwScX3mTwMZmo8WA0PD9yBEYSNopFrQQY2RUYETiYgKbdOvF\nZ7u1dPRYYn+pdMOENFdA0Yv3CzNXF8I3LujvHZi+7o8Dp+y+Jra1hiFhpMfu\n/mXKVCqDocQCJBKLHV0OOVDjiJuy0MDZsCTp5hMN2l2Eb8VB95cLE7Jibx8b\n4u5lMlEhZmPVsjQk0Vv8crpCEP1FJKdSXbxFnzWIfrtWogfFjZn9X0X7Eano\n2oRV\r\n=qDvm\r\n-----END PGP SIGNATURE-----\r\n","size":3366,"noattachment":false,"key":"/@turf/line-segment/-/@turf/line-segment-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 line-segment module","directories":{},"sideEffects":false,"_nodeVersion":"14.14.0","dependencies":{"@turf/meta":"^6.4.0","@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/line-segment_6.4.0_1623936646587_0.9754962052712532","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":1623936646692,"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":1623936646692,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}