{"name":"@turf/rewind","version":"6.2.0-alpha.2","keywords":["turf","geojson","polygon","rewind"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/rewind@6.2.0-alpha.2","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":"deb92e2517a4168afb509854b97136ef8cb30f98","tarball":"http://registry-npm.ywwl.com/@turf/rewind/download/@turf/rewind-6.2.0-alpha.2.tgz","fileCount":7,"integrity":"sha512-T00hkorf2IGHa+263fEf1pa7MXeiZouh6dtHutYN/XCESND9OzHAb13Coj22Q7vIUMrSBGsGnXkNe7+PUGM8ZQ==","signatures":[{"sig":"MEUCIQCY653uo5kS7jOAZ+sPRiXDIZttg+WzeO1HHIXxbKflVAIgYTgIzsj3VHsADXUrtkA2vxUae3po7srT3POmL0DMJjs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDHJoCRA9TVsSAnZWagAAI5sP/j9K63MWravL8sNZKNjS\nF66qiv9utLKrNbvmSjUSASjAQYQZAElDZo/KWKt6YreKzoXf8735JOaXOZLn\nUpEs2t8iJrmygDouIKobDOPR2BVYtJoGlkhorL5/sz6fwV7omAE1nTCbxEfb\nHgSzLuVxXUx8dShRpV72mssQym5kZVjqMZRDyrY/DQuFOVrdIsHXRpQzpftR\nfE05PxQPd3JgetMgRaW6Hdi5lblTNkGE186Si+trlDk1531LsYJBTD5DC4Oz\nzhQyJqfMOXYaTxwXISGnaH/d9f0wTsprv2FV1ABVv3Whsseff8q+z59XDN+R\nUEHKMo8VoXi1HRmibGXA/OaGIJehc0ZcecMtIvw1h7ILyqopoLkKR1wFc08U\nzkT9XEyXWVRjJKn6Yk97eqkYGD9zvjgYzPR+ZszHMXO6dCvfVwbZ2xBDDqq0\ne5FiWSlW5Dhx2HPoEmS1p6KspAzr6/WP/+cuQqR2sAfYtBnSNKMM5zu4Q9Ff\nCO680pbgrWvxONJ9sqeqsiWH9Mezkv/dfmds9Pa+zx+qjkpy9sKBHHsBpBdW\nYTJ+c0xQjkNSHwvxVIzAuAJt9DjZ8KJareb9WfaaryKptCTZA0LQQbVL+tF0\nVsIRHl9FfTvCqnJwB4bmmsl09tO/c3lBge99767ts2YOfewHD7XRU54QRXzz\nGFwL\r\n=naFc\r\n-----END PGP SIGNATURE-----\r\n","size":3845,"noattachment":false,"key":"/@turf/rewind/-/@turf/rewind-6.2.0-alpha.2.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","gitHead":"23d5cb91d77e0c1e2e903a2252f525797f1d0d09","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.2","@turf/clone":"^6.2.0-alpha.2","@turf/helpers":"^6.2.0-alpha.2","@turf/invariant":"^6.2.0-alpha.2","@turf/boolean-clockwise":"^6.2.0-alpha.2"},"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_6.2.0-alpha.2_1594651239861_0.45363674874867366","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":1594651240031,"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":1594651240031,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}