{"name":"@turf/line-segment","version":"6.2.0","keywords":["turf","line","segment"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/line-segment@6.2.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"2ffd646a41f8ba2e905b7195611070f73c4af6bc","tarball":"http://registry-npm.ywwl.com/@turf/line-segment/download/@turf/line-segment-6.2.0.tgz","fileCount":7,"integrity":"sha512-2NkhB+ZBQDYIv1Au7weNeVswtvvyyh/mHVH6uSYVVrYrnvvwlFbQG6f55nBhzA5IOXdhb+3nHXLAlBMN1iCpGg==","signatures":[{"sig":"MEUCIQDzBqjfbdJvDPEago2BSwE0L2yKO8ofehnpXysCOow9EQIgFtw/U2LytZCJUZqjmwnbCJdIT0auUnGrO1xbnnPThvE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/bjfCRA9TVsSAnZWagAANfYP+QHEp4msxspspLPcurJY\nz6vZZpCb2tHyVCY33dGGB8iT5+EWivlQKm3hQQ5pUV+QS/sQExwyT7ZqVeFE\nQuwTgAYqb8hObl94MgUeAW0rk+LKH376DrJIOw/ZThcOcyveAp1Na1O+xQHE\ngLRE4PrT1B0AKtIhwnTGKiQkKjDWatteapAioWSvxLvE6nv5L/ShLBBe9rc4\nR5Q1xeF4hltWhTUDjIQIDBWE+7UxYH7hKI/Cd37fBbVeR3I14qT89IqsAfGm\n1nqt3Q5YA/u5NVXxwSm9e0bXmndHtH1zCX8hHQL6XP4C2Ni5MKULR0mNzkeD\nQ6ttoz3YSDr4dH8+kNFivNVI1AyNARQ1RgNJfVYOyQA3t6VfL9MZjOu0jR2B\n7JtrWMj4aoJCazkoU6UMMfg38EB15ywZsMzoFVn+xZvCDRIY5Kf8AyEywYOu\nMgcZaxuoqmCq5Um+LYnJKRImzOznteqocBgNU1oB6at6tja3pHCkzIY6BrVP\nD/mP3bFt+LgvvTVGFwNIP89J4rzQLlA/IYUfuxkuACJkE+NBaGmfuWJZfi+Z\nO8Cn4/z18TCB5sbAJObb05vH68ZEZRPx1mxnX0CRrw2aWTWAwXZ3tnN8zjf/\nHQS+RMbGUGXP7tEPixurXgAIqW12QL19l8rE512FHzsD/DvWW89oQoPpqnfy\nZHYx\r\n=SNCk\r\n-----END PGP SIGNATURE-----\r\n","size":3346,"noattachment":false,"key":"/@turf/line-segment/-/@turf/line-segment-6.2.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"},"gitHead":"c277baf2b967a35efec75de9ae54869d20da5288","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.2.0","@turf/helpers":"^6.2.0","@turf/invariant":"^6.2.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.2.0_1610463454611_0.8105939058820482","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":1610463454712,"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":1610463454712,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}