{"name":"@turf/line-segment","version":"6.2.0-alpha.3","keywords":["turf","line","segment"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/line-segment@6.2.0-alpha.3","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"c78d77d7e3158fa22c355966aaa184018707a994","tarball":"http://registry-npm.ywwl.com/@turf/line-segment/download/@turf/line-segment-6.2.0-alpha.3.tgz","fileCount":7,"integrity":"sha512-igE4DZOwVWHpSBXr8Yt/av8gSeI+hxnL2Y1uiEjFSVABStTSPc2tMctD0Lwy4GJ0ItuLns6SAzflaRELuJ7kmQ==","signatures":[{"sig":"MEUCIQCm2y1CQmR+Hn5Khklyc20WQqmBbSqIJtZr9I9X7ZwUWgIgOChl+dfqWmSA1c2XryL+MqfYgrrmAU5hEQAItWArMrY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11327,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0o1pCRA9TVsSAnZWagAAaP4P/1B2a25sjP/WS0oX8dw2\nL1dPfALCFXSFgKNLqt38FfN54AOEMGjo44P7RSkdxc+48aD/zAyk06dnwqpm\ny705lJK/vkZ13Pn72/4KpnnY2Z/Cg4qytNbqdbW572o/hvbwXCgdjCKxYHwB\n4/cGctc4znTWpt+PGIPStCsy4fXI8qGozKp7uw0QlRTxkgh5a3LqCrLV4xHL\nKijT963Sm8JGzEjR+WFgUQ2Kayiq72cQSisYAdXyTo3JGo4lS5mWpxKWZrw1\nP7TwX7E9sbmwCZMRO+uvVy7dHrj0iKWUfWUYbJhT04ljMNVMfFlt2OKjPYQ6\nV4tWMAfva9OozQRbGy/PG+oVIomjNOpXs64YXbVBNp+nIjMjLV+CiPaGK1Uk\nWbiAYiY1uUIftQMw5dQRO6Xjvw0jnKCnE0SrVmb07QmVgoEKqz5j0feEGidc\nJ3JTb7J2Y4OHOPqYyrauUPV8JSRETYoVGGzD0gfl2F7+19ksz31YUumwfQHK\nYZVZEEMY6Wc8HJa6Xpo3zWey8bREXaG3Buqgn1HktPVLvj+AEj/DE0ynqFA/\n6gJ88VQnTRgFruYKkucQo3V1sr4cQUf9eW5tI44WuBiEXzv96n5xStHhiGyd\n3IIqBeSqrAPxU2VBcd352S7KsrnwDqLdltGZCn6of/0RBE2Eh+5Zm8euF2BW\n/NeM\r\n=dynI\r\n-----END PGP SIGNATURE-----\r\n","size":3350,"noattachment":false,"key":"/@turf/line-segment/-/@turf/line-segment-6.2.0-alpha.3.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":"dce9edfc705352e8cb9e0083c9330ba0e8d77409","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-alpha.3","@turf/helpers":"^6.2.0-alpha.3","@turf/invariant":"^6.2.0-alpha.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","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-alpha.3_1607634281197_0.5137251491926162","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":1607634281331,"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":1607634281331,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}