{"name":"@turf/rewind","version":"6.2.0-alpha.0","keywords":["turf","geojson","polygon","rewind"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/rewind@6.2.0-alpha.0","contributors":[{"name":"Abel Vázquez Montoro","email":"@AbelVM"},{"name":"Tom MacWright","email":"@tmcw"},{"name":"Denis Carriere","email":"@DenisCarriere"},{"name":"Morgan Herlocker","email":"@morganherlocker"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"ae78241546f09b647d8b4ce7b48109561f0ee992","tarball":"http://registry-npm.ywwl.com/@turf/rewind/download/@turf/rewind-6.2.0-alpha.0.tgz","fileCount":7,"integrity":"sha512-/L2vseDIDsna3IEboYNspr1x8Woxip5k4WmWVSVJp2moBpnuFTKSJVX35ZWVLfu94pFBfJb3oQzmoxqGEL6MGg==","signatures":[{"sig":"MEUCIFJjlOX8HSTauc1Sh9dUTsSkOryuyh7bRPfF39uZFiYnAiEA5EmHk+YbAEcZ9GcVHhx0W9harVmUiKyNS0njrTHvfq4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18195,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefS5HCRA9TVsSAnZWagAAXFcP/i/CnXg8BE/lxDbVsK62\nW9rEuCOxGsUeKHxOHkSXTW+nNnmD4ojqsE7o1qJAHAeFW6Z+UK9zXzGIIgMA\n+PTH3Xg+Whlb7oLOl+Q5V7E4j+iCtdS05K2oN6e6nLMcLOtg2bZsq73rETlX\n244fFQU89hoQtXgc3JgYFdJwOFG+Xoi0vi5Eb5PKdBFC+2nZoUmysuFYGZXS\nq/Ep8J8savOVLay9jf6N4NUvBmevN210LO8ADl+7DOGloXGrUgXgoverU1NL\neVsJ7FpZBdaOBvCFosVuJjKxlekByIJ8vk/5EuP50wRVbLa8fA6Nt/tIvkXx\ntWh/V0bXp48dnzuayuauLTNWAhYceC5MGb8kbHEhm4hSaIz6Ib9kKbBcUHH9\nQHRkRPl0tUuD/k3ohYMHkypbFwMwbcsTzIBykWHOdAk7egbPCWzLFajZbCXW\nhlZ71p4JwXY44gAn8lvvr+2KMSFbRCXanLyd/zLMQ6aneVPRSSuAncnNB5Ay\n1eYArbH86it5qkUvzwSLgmwgthMfyRqWR2kwWr5/KUFRVK7we/GIQfK2pzoi\n0PG84YlMO0eGFIWzTT5r6T/OJeGVfLirTQN3mbzcttNRy3iI1P77geiGFVVG\nocoyDzi7gUl89oqrbwJBd7TiT8Aw49Iu8GbIF7Wu+A/2++ORNw6VI5tebCZW\nwKsN\r\n=nTLY\r\n-----END PGP SIGNATURE-----\r\n","size":3817,"noattachment":false,"key":"/@turf/rewind/-/@turf/rewind-6.2.0-alpha.0.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","gitHead":"23b651deaa1ca6a0960d0142aea620b7cc6a076d","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all prepare test:*","bench":"npm-run-all prepare bench:run","prepare":"rollup -c ../../rollup.config.js","posttest":"node -r esm ../../scripts/validate-es5-dependencies.js","bench:run":"node bench.js","test:tape":"node -r esm test.js","test:types":"tsc --noEmit types.ts"},"_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 rewind module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/meta":"^6.2.0-alpha.0","@turf/clone":"^6.2.0-alpha.0","@turf/helpers":"^6.2.0-alpha.0","@turf/invariant":"^6.2.0-alpha.0","@turf/boolean-clockwise":"^6.2.0-alpha.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/rewind_6.2.0-alpha.0_1585262143768_0.7119218932510492","host":"s3://npm-registry-packages"},"readme":"# @turf/rewind\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## rewind\n\nRewind [(Multi)LineString][1] or [(Multi)Polygon][2] outer ring counterclockwise and inner rings clockwise (Uses [Shoelace Formula][3]).\n\n### Parameters\n\n*   `geojson` **[GeoJSON][4]** input GeoJSON Polygon\n*   `options` **[Object][5]** Optional parameters (optional, default `{}`)\n\n    *   `options.reverse` **[boolean][6]** enable reverse winding (optional, default `false`)\n    *   `options.mutate` **[boolean][6]** allows GeoJSON input to be mutated (significant performance increase if true) (optional, default `false`)\n\n### Examples\n\n```javascript\nvar polygon = turf.polygon([[[121, -29], [138, -29], [138, -18], [121, -18], [121, -29]]]);\n\nvar rewind = turf.rewind(polygon);\n\n//addToMap\nvar addToMap = [rewind];\n```\n\nReturns **[GeoJSON][4]** rewind Polygon\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.1.4\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3.1.6\n\n[3]: http://en.wikipedia.org/wiki/Shoelace_formula\n\n[4]: https://tools.ietf.org/html/rfc7946#section-3\n\n[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean\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/rewind\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":1585262151135,"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":1585262151135,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}