{"name":"@turf/rewind","version":"6.4.0","keywords":["turf","geojson","polygon","rewind"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/rewind@6.4.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":"a2a35ad36bf4841c1f73fa4d6952fbce763455d7","tarball":"http://registry-npm.ywwl.com/@turf/rewind/download/@turf/rewind-6.4.0.tgz","fileCount":7,"integrity":"sha512-7/ebaLR5c9PwqnL5Q/Fi8TgeAcX0e4ieVjpz7eyKW6EuUjQyiPR8bezhEQe54/dDfcMlItz8nsWH27GoNrSlmQ==","signatures":[{"sig":"MEYCIQC0XpjQ9jxsLLpa6Va0syHUl6YZ4PCeuZYENAmAzwKv1QIhAOlr6T9clVc92xfOVxXIMmTiUGbR2HYGsQqSA8ljxxUY","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\nwsFcBAEBCAAQBQJgy06ICRA9TVsSAnZWagAAcK0P/3tvFWYbSzE95PBXco0V\n/Bs8ZWpGDhkYkHa0w9SQFB3gXunZnddijWfnu/+aMZTS7P0GweULe2jNLlH6\nJAAijGAtCKXIRQsRI9zCoYOBb3QZ5t4mqKgRcV7SglVsynd+gkR6rauKcvES\nNlHtesrly8q75o6BPGL26jtG63P+I/jcVn4+NJ7EBN3ls3jJ/ai9e5mE8gLw\nC+dyMV1dx74f+TZQM/wRXdNxGKaGZy7l+vprwRyWLoNPkQwN/7/wXLDmtsWx\nbPN7GC7iokQcvXT1X8/ekXZUBKIr8F2nHgdl0DlsB5Xg843ZH33mt020G5ia\n546bY1YXJVW64hI/buadjYamLFssKv+XWfvqZGXt8b+eTcY/JuE07jSIA24d\naR00duykjwgbWjbxilcv4qjt8AstjgwRpmS1/KQW0mrf8xi6HK3SFxgYySKB\nGXAgJn7KXI/0tT2HYMkpzKJJYn0zF+8h7d2PCoxZRdgZnuFuSdlUB6OUVQBb\nY+Cj2WeDCVFKwljR9au3PuwBlPTD050xl5AKIA8m3oiJcI2jyiEwQCGqkyLH\nh48zHPvmNAOBZdSjsWbASEr94Jb2FvqX2u/9yB98tdG0t8Cmr6L/G5ekdB62\nvDFa3LmfKOlgoAVTyroEyhDDdl/6xvHDvYQpxA9NC0OYzaC8yw5EGt3+SYeN\nEV8Q\r\n=MKk6\r\n-----END PGP SIGNATURE-----\r\n","size":3815,"noattachment":false,"key":"/@turf/rewind/-/@turf/rewind-6.4.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":"1e62773cfc88c627cca8effcb5c14cfb65a905ac","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/3.20.2/node@v14.14.0+x64 (darwin)","description":"turf rewind module","directories":{},"sideEffects":false,"_nodeVersion":"14.14.0","dependencies":{"@turf/meta":"^6.4.0","@turf/clone":"^6.4.0","@turf/helpers":"^6.4.0","@turf/invariant":"^6.4.0","@turf/boolean-clockwise":"^6.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/rewind_6.4.0_1623936648110_0.6460589157385688","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":1623936648236,"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":1623936648236,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}