{"name":"@turf/rewind","version":"6.3.0","keywords":["turf","geojson","polygon","rewind"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/rewind@6.3.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":"f52fcbad79c0e932965a2346f5e6d3dda22aac5f","tarball":"http://registry-npm.ywwl.com/@turf/rewind/download/@turf/rewind-6.3.0.tgz","fileCount":7,"integrity":"sha512-56HwvOZ4r4/wXr8l8zCpdjZ3bxY6Ee7aokuJr/+BlVqikHdRHRx+FJpLGpykZU1YWdO7IiLK7ajX+clYPaqRKg==","signatures":[{"sig":"MEQCIFKaL/6WNK4IGJ4MxuoNh7tLOvDUo7fTzwn2ear5lmTRAiBXFAvawTUU8KOfODIzAbTRBxe3TO52DryJYVaSz0/byA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCECZCRA9TVsSAnZWagAARTEP/jjO/ox+LlY1HiR/7/m2\nRoCXTPXee+15CMUAV2zp6I4+gGO8ji8vixZzLwDs39UmxOcXW2GgE2C+A91/\neCgeNurQI3f7uvYEk+gdrQxdT237eG8D7r4LprwKW/pSuP14kQ66IAO6j8Km\nr54JdD1HbspKp4K37vcWfppAQSz/YumkjALgXBnzt1rUCqDn6BE9U6i370yZ\nqNiG8EErSFXT5p4GteRb/K6bYKsTw9OK9g6ZyaRq1m757uaPAhHhALIwcojp\nDNWs7eokeCsiGnKrYJ7pWL/JIAKVKWOquiDmEmCNPtfTcU3T0C66OA/WJHwY\n05CbtaPzK9iIAP4J7pJWKCAcUQSNgKPMgryn5YXqqw8//uruSt0yxn86UlJM\neEUWRvRXZKQT7Bz5Bz7YCBoMaAGi2UKG4F8rcmj8gd4aeSv+COuCKWV2KnF3\n3gJYs1PrxPilSnbcn6xr1yh066wy2eiwXQRKHEWJl+VlCzXXy/odYIqGLzYr\n55gViw6WypK1e83jq7cc0jvoU9W8f/xtZdBGTXOzQqMoIob05FySuO4GWqEV\nLjg0OSmZQ6LSxGc90eVsK8CCmNVB6KctnMZ94yD/oQEVbzUUbyyAIQXMT8BM\nNpAoW/QJ3lGprZpqmDtG/EN7H77d2gRGOYu/3/QYtjNpYMZIOxyLDDc/VNoo\nPZZq\r\n=6kVz\r\n-----END PGP SIGNATURE-----\r\n","size":3813,"noattachment":false,"key":"/@turf/rewind/-/@turf/rewind-6.3.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"},"gitHead":"57c8877e1e2d67effc2cdd23385c02b2a6615a49","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":"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.3.0","@turf/clone":"^6.3.0","@turf/helpers":"^6.3.0","@turf/invariant":"^6.3.0","@turf/boolean-clockwise":"^6.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/rewind_6.3.0_1611153560751_0.5434680902890434","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":1611153560929,"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":1611153560929,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}