{"name":"@turf/line-segment","version":"7.0.0-alpha.0","keywords":["turf","line","segment"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/line-segment@7.0.0-alpha.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"a41c8af60e7085fab99af965cdafbe966a03d66b","tarball":"http://registry-npm.ywwl.com/@turf/line-segment/download/@turf/line-segment-7.0.0-alpha.0.tgz","fileCount":7,"integrity":"sha512-Q30+m96Z96fLD6QmFUfSdOt1ODCiuHMjlSRAsRijgs8wW4xBb0YMdCRJrIaKJgoys4DHUYUkM1+pJLFLSSLzUw==","signatures":[{"sig":"MEQCICXy9n6RCfxw2wtikuZW+I+cTC3Nlh7HVXfeiJwlcMx7AiB8PA48qXSj8BYwQkrXuZy/bPTA8IFRhdMH1AJ89YwxVw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11105,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja8OrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr2aw//eimyXf9LmQBWyjko4HfSlfyhTwmXkvwk9hWKvhwOWuCfYS53\r\nN1cKr1qBv7hi7SeUltiyHKQrJ+qq2F916dHyMNoiFlPFP0osDKslgMRdPFZ8\r\ngrkyJF7n/H6mLe16EPtiX2P90jtVUdCgxcYloE1G2WJEcHN+xF9VOMhAP/Xe\r\nUJHM+lUjOrt2GCYrsSEn+qLhoUV4iWgs2ammolk21r4qGfSu8ZluXwgwIyOw\r\n4DKuQjPttFMfdZhup0b3TnhvveocXVkqknvrWdJfGozuG5XbAhvN/srmQgdE\r\n0jDM/YFNWcWXqmd2pO22ehvCZfApKhW6lOjFI6Kyhq0/gaP3asj03OgB+l5K\r\n2+8gZc3giE+kK92gzbY/Lp6XJARjforg43ZNUx1H2k3AKEEjyGjY/3oJmf2M\r\nTr+iEVqNCJ0VL0xneFd0yROBUb1LzK6/5F/bfoZf6d1vBVzhe5DILzMkvC8q\r\n9Wz4vZqeAE2oNyLg915pWQfxQzlC8er22XEQ3IoazEzK+SeHmFcsAI/Zxp4A\r\nzXI0inSzWYgZMkzxpl/Gq0z7pDK7wRMSYXA2hwmBbyeovYD/moBM4SlcM+2r\r\ntKLMJhidD3pjuIzT4DBIAr5Cthl1EclvViQXHsIAkMmgb0ppq+9oSpQmUhHp\r\nTp35VwHow2TdZMH+PsuFx970QYSO+ajpF/I=\r\n=ONPD\r\n-----END PGP SIGNATURE-----\r\n","size":3337,"noattachment":false,"key":"/@turf/line-segment/-/@turf/line-segment-7.0.0-alpha.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"},"funding":"https://opencollective.com/turf","gitHead":"0edc4c491b999e5ace770a61e1cf549f7c004189","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/4.0.0/node@v19.0.1+arm64 (darwin)","description":"turf line-segment module","directories":{},"sideEffects":false,"_nodeVersion":"19.0.1","dependencies":{"tslib":"^2.3.0","@turf/meta":"^7.0.0-alpha.0","@turf/helpers":"^7.0.0-alpha.0","@turf/invariant":"^7.0.0-alpha.0"},"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_7.0.0-alpha.0_1668006827401_0.14689605738004574","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":1668006827567,"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":1668006827567,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}