{"name":"@turf/flip","version":"6.2.0-alpha.1","keywords":["turf","geojson","coordinate","flip"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/flip@6.2.0-alpha.1","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"0592069db1c0b07cd3d5882cba8a00c9d3613614","tarball":"http://registry-npm.ywwl.com/@turf/flip/download/@turf/flip-6.2.0-alpha.1.tgz","fileCount":7,"integrity":"sha512-WkMo68+LlAuIyHNZ1FcAe689M5FIFpktaUkZVn0G15TY/+vrXaBXRJtDhAZYWFPnSRDFmBPA+Xg+2bdK2i392Q==","signatures":[{"sig":"MEUCIGT4LyRKXJpXUOw9VkCIEex/8aIZhiEeLRSQs/MN2CeUAiEA15mwSnw8bHfIC1uBkeXrexyOUB1HZ5wxIsCkrVnKqo8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8619,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefUJuCRA9TVsSAnZWagAAqrgP/i3ZjBGl3DLFdJXW8S/E\n1GWHLnUu/i23tT6FjcxZXfT/eSVnlNvJKwxYEPd6o94YweSrkEcbGRiErWVl\nlTkuvmzsl8V/yfnEt/DgXXdD18+y8jGAfxCi0cyRMsCqStbgzHHkcXs9QWAY\nO52IvMNpljOvztlO1VocDGcVi/iGtV/b30LoDCRW8u55zU9B8/IKSWOHwZOo\nMA2FbN99cHzKpUP+0Iwztd59R2IxiMMFMISbk7bmk+9dfq85m8ic1KEdrapS\nQMvYoPgdO3lzohX1tU36EES8g5N+JEv4LjCUfqfnaKSI5tEPBNqXpFeOZdTD\nHp2Yu/kfoBAArIoEraxtTpeQ2SL0c+k1EPDv5mMc7DnGKzh+oGrJmUeFSrHQ\nV0wzFlCMuEuXdf5OAFs8S1YWAG+JlG1dvt0K5RaixRDHWU4St3vLGmB/Nknk\nJMCPTIzKTL6rE3zrEetbe2vzcT5Xl/LFus4LqngSSz1eyrNIDc2Sqp0X2yHc\nt0xK/J5KH/aPiuDjKx/TSfH+NFz1jH6CCzDnV+XA5rD88CtKbUfck4nqvOzf\nyy79JYlX6hc3EQMtPmoUaq3iW5ZWhRLIdi8Sfy5h6ygQ85QMDru/LvbCTNbq\nBM2GCAbpltsUkiMFpkwFi+X2D6AN2slSBu8Yc/V8UshrBP87XqQcOva2E9Ax\noEJe\r\n=+vpo\r\n-----END PGP SIGNATURE-----\r\n","size":2926,"noattachment":false,"key":"/@turf/flip/-/@turf/flip-6.2.0-alpha.1.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","gitHead":"fc519c045a8931c1e14eab9160a7e28391f8da02","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 flip module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/meta":"^6.2.0-alpha.1","@turf/clone":"^6.2.0-alpha.1","@turf/helpers":"^6.2.0-alpha.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/flip_6.2.0-alpha.1_1585267310497_0.9231527713826948","host":"s3://npm-registry-packages"},"readme":"# @turf/flip\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## flip\n\nTakes input features and flips all of their coordinates from `[x, y]` to `[y, x]`.\n\n### Parameters\n\n*   `geojson` **[GeoJSON][1]** input features\n*   `options` **[Object][2]** Optional parameters (optional, default `{}`)\n\n    *   `options.mutate` **[boolean][3]** allows GeoJSON input to be mutated (significant performance increase if true) (optional, default `false`)\n\n### Examples\n\n```javascript\nvar serbia = turf.point([20.566406, 43.421008]);\n\nvar saudiArabia = turf.flip(serbia);\n\n//addToMap\nvar addToMap = [serbia, saudiArabia];\n```\n\nReturns **[GeoJSON][1]** a feature or set of features of the same type as `input` with flipped coordinates\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3\n\n[2]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[3]: 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/flip\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":1585267310611,"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":1585267310611,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}