{"name":"@turf/rewind","version":"6.5.0","keywords":["turf","geojson","polygon","rewind"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/rewind@6.5.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":"bc0088f8ec56f00c8eacd902bbe51e3786cb73a0","tarball":"http://registry-npm.ywwl.com/@turf/rewind/download/@turf/rewind-6.5.0.tgz","fileCount":7,"integrity":"sha512-IoUAMcHWotBWYwSYuYypw/LlqZmO+wcBpn8ysrBNbazkFNkLf3btSDZMkKJO/bvOzl55imr/Xj4fi3DdsLsbzQ==","signatures":[{"sig":"MEUCIQCPap89xvUkRLFVjDCWdMNNF3lIJ7qZXtFlLcuP1WjPLQIgFPOVufRoSQJ/ZWQTUHts7kHMEk2R5Yc3mjbsMjzj2+I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13914,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2fKnCRA9TVsSAnZWagAArm0P/A69Ss9rW4M8wYMwVJTM\nUuK/OfmjWSfXKEsrkP6IFONpYpxVhkwlzv8/z8PRfudt7sIGiNc6gbfTEF8D\nXBw4WBiDc5muHqdeYNY94OL/PHXEL4QAbezxamq4VbkHgEh4xHOryu+SohSR\nkzUGfrX8aAuPjMzisPljtVMRFt9rDvK2cbE4/feUpFhrzwAAKPsKzGjl1Www\n2KSasuIvcti9tBXJI+BOU6pFPBCpRytuXyk2vjmREnhGWXX8zbX/dkMEfu2P\nfrz2UpNE+Y+ANDpiOk9iZ8niSv3DbaNcrLiyagHqmORNlm2ZS3fcJYXuaSAo\nB7wTikXGo6FiW1GbGhmkJh07iw7F2CzGy3Tzl+qUYH5mnAIetnuX0PZ7BR21\nfDN1rTFOIB0GN0JdeukiNt8+LX/lcQQ9pckwdK7DGguc7YC98AW8IYiWKTyG\nkt+XSQKQ8YaiJrNVqRBV9Bd6j0KSHOGXzINvdFmTqXS4CA9urark2V5Sg7x5\nIhKxXBrCummDwHO1HsDGkU1YUFjURGZWlln/8ULmMFoI2baC1rM7RSvhMy1C\nWh5nhhDQN+URUmgUtq8YDR3DMgj2zGrxpQB/QkD17rMph58J1rC73q7HWh4n\nAtHCGzj8x39p8JTiAInIUPqdauB/fsWClxdyJgJKeqap3aBogUYn7jdIL/On\nGGo4\r\n=buJ5\r\n-----END PGP SIGNATURE-----\r\n","size":3900,"noattachment":false,"key":"/@turf/rewind/-/@turf/rewind-6.5.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":"5375941072b90d489389db22b43bfe809d5e451e","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 types.ts"},"_npmUser":{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.8.0+x64 (darwin)","description":"turf rewind module","directories":{},"sideEffects":false,"_nodeVersion":"14.8.0","dependencies":{"@turf/meta":"^6.5.0","@turf/clone":"^6.5.0","@turf/helpers":"^6.5.0","@turf/invariant":"^6.5.0","@turf/boolean-clockwise":"^6.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/rewind_6.5.0_1625912259499_0.23535403247280828","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":1625912259595,"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":1625912259595,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}