{"name":"@turf/rewind","version":"7.0.0-alpha.0","keywords":["turf","geojson","polygon","rewind"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/rewind@7.0.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":"b8a6478034930fa0eccb999775b7bfa5e8e8dd7c","tarball":"http://registry-npm.ywwl.com/@turf/rewind/download/@turf/rewind-7.0.0-alpha.0.tgz","fileCount":7,"integrity":"sha512-wkVNxyJ3dMExXk/sOumk/umpdFZX0oLDnnuY0YXvlBnrgsRLwNR8glt4vlnBqCSHB+YJhRus1Dnw6Rs+oWx5Tg==","signatures":[{"sig":"MEUCIHLNBiqz97Esaqr/dmAo4ye9pyimcRE2H0kbDWv7C2XRAiEA2FaQPmV5tAJhjDBeyzWruuPNUdJSKWEzdEXn/ey+RgQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13972,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja8OtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrhHw/+L0SXVWO+zeFqnsSO6RHA74akoBHXa1VMrIzDiJRBSShz60qm\r\nWlzGEDGYS9N4Pzl/NM7AdaUGIoaoKKDU8o5dcB2sRhF1iK9HDuyucfVWi8fx\r\nhviSk+PRZq8DvvxlM+XWIEJXi0KUngFgQeg6HcOPJ+iPhwer1Qciku7JU4yG\r\nVXHHplEtOXtHVm/PoGbisGWdnouvdzhyyc6CPTDw+2HOWNNn68852a/ZcK1g\r\nwvgBZl543jMPk4Y6hyLqurtzjfmJ9w+0Skc+mgDFJnmMCTBDAdld0L09hw9d\r\nB1YH6OCiy699BUx2O4W/Pf4KNPtH+jTeK0ectg3+BsT7uUrl/la5oy8SkZCM\r\nOEyi5KeU8abJjKEfScDt94i9BE3HfHYm0Ni5sNT5Ti4sw+WNagltceeqigtm\r\nZlFIpfU9f9q5bsv0/typ9impJ+lfbfyLpdnuwp36dgbWeWHmsBj8ojz5nOtd\r\nQkS56QtSu8hIOopfDR0tjpkH9W4H6qtjFNfgssspHAEfWaHT4x4yt2Nd4pBm\r\nFoQvTPb3MPw8mUkfsiSQ6tFmzqMKbzUHPw4Ide8eRmYWjzJ68oLg5UT5Ux3y\r\nKx+p4jAxO1QfMkKAGODa91ep5MYzKA5S/2j4dLWxmCtivug+tvG+iFUhqavM\r\nh+c86QUJMkZcRstVFt/Ir5yrhXINU1JtEnw=\r\n=ZvBp\r\n-----END PGP SIGNATURE-----\r\n","size":3899,"noattachment":false,"key":"/@turf/rewind/-/@turf/rewind-7.0.0-alpha.0.tgz"},"main":"dist/js/index.js","types":"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":"node -r esm bench.js","build":"rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json","test:tape":"node -r esm test.js","test:types":"tsc --esModuleInterop --noEmit --strict types.ts"},"_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 rewind module","directories":{},"sideEffects":false,"_nodeVersion":"19.0.1","dependencies":{"@turf/meta":"^7.0.0-alpha.0","@turf/clone":"^7.0.0-alpha.0","@turf/helpers":"^7.0.0-alpha.0","@turf/invariant":"^7.0.0-alpha.0","@turf/boolean-clockwise":"^7.0.0-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/rewind_7.0.0-alpha.0_1668006829066_0.8871858681773326","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":1668006829247,"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":1668006829247,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}