{"_id":"@putout/plugin-convert-sqrt-to-hypot","_rev":"2-f5f4cc9b3b37292889b856f2fe54aa61","name":"@putout/plugin-convert-sqrt-to-hypot","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@putout/plugin-convert-sqrt-to-hypot","version":"1.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert 'Math.sqrt()' to 'Math.hypot()'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-sqrt-to-hypot#readme","main":"lib/convert-sqrt-to-hypot.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","convert","sqrt","hypot","math"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=26"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"b8ca68d35deeea4aeea5615c30e770d3a0e48c77","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-sqrt-to-hypot@1.0.0","_nodeVersion":"18.1.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-/jBVldmERegPbCM8V24oVhvKasDN+qBbUUglTPYLme+8Dwblw0pm16KhjORCmodLl6YABwGc0tAOq0ckNwLx+g==","shasum":"08b23a83448f4ff38de338fe05b815e82343c07d","tarball":"https://registry.npmjs.org/@putout/plugin-convert-sqrt-to-hypot/-/plugin-convert-sqrt-to-hypot-1.0.0.tgz","fileCount":4,"unpackedSize":3875,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxQEIKet5x5u4CGMtsZ74WRPmhYU3E9fh3QMhqC1/WUgIhAL0M/69w+8nXN45nWO8EpgkeiNVmsxGAETYP3N8D3KYS"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiiUrBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqvTg/9F8kRcSigmWtwGfOvMaPvdC5PkmfZKRm4p0dbuAV5NDCtCH7Z\r\nntytjT/bvMPyGfeH9Np9xKMF7G2G2EUS0u+rz9JBjGnLX7N2vptssP283DsS\r\nBlBrUy4qdJ8rScMa1DKgJ6mwG6jTNAcKz2ELfjQP69hqB8WphgQeB6i9S2/c\r\nMV3Gc3bIF2QdtRV+72HNy4Vmcp3SJuX4HELlClkkFNNTRXH96N4c4uRvhg9s\r\n85tV38YuyXZBTTCsncMewu4iylvEbqTfDvlnQbNPOD1m04Xz2zlLsTBcQn7S\r\nLJV5isenQwzdad2Vj/UnDbw/sw9VDypRKWdTFXD6xd/9d+emIo8XJugkxXsA\r\nbDwkF3VyhgqY0vdU164PYQkyP0Vw0IutEbbxK9kk7A2cx2x5f9cQ7lmEJn73\r\nasJQxq8EfDLXu7TO2xqE+WcHnSHbYOJB/YhTpr/Y/k1m6M4qMjHCMMDi3qOh\r\n5rt215jnbal6E3wk81FhLXDKICZBz/uiluPj2o54Mi0P5m0318sIijQUVLy/\r\nGFJ039tHd9uMf4IBmNzJ8KBs5NEVGSeoImgMZoNkb4gI5FPVmK2UCc7hiy3x\r\nCAWrGDXwFTliQlFKTuqo6hQfjHHYN09iXQkquszSPpE9TcHD3Yoo1C4ncqVf\r\nZSX2E+FjknqXXwJLGEZcFBe8EJeHhVvmf7s=\r\n=auvA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-sqrt-to-hypot_1.0.0_1653164737618_0.743715006705685"},"_hasShrinkwrap":false},"1.0.1":{"name":"@putout/plugin-convert-sqrt-to-hypot","version":"1.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert 'Math.sqrt()' to 'Math.hypot()'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-sqrt-to-hypot#readme","main":"lib/convert-sqrt-to-hypot.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","convert","sqrt","hypot","math"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=26"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"5c487206002bd2748632caab14c82412298758d2","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-sqrt-to-hypot@1.0.1","_nodeVersion":"18.1.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-5WSDmkEg+9jUkb5iEl9FCEc0gsUv9tR43pSd1EdiVmn2TtyOrI6Df/mGGP7zMfwXSDsFRk0RAv38EE+H60uuWA==","shasum":"51713935893a4d6544104a236cc70f272beff9c7","tarball":"https://registry.npmjs.org/@putout/plugin-convert-sqrt-to-hypot/-/plugin-convert-sqrt-to-hypot-1.0.1.tgz","fileCount":4,"unpackedSize":4022,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICVqC6cQOkgf+Fj7hSX+OlD+6Plq8f8fpoM4d9NHIvXXAiEAogJyFcMpHOgOi3nSMn2Gl5FTHKqmP6VyzEd3AoVvKZ8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiiUsnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPKQ//Wn1lMcbvafpL6FIiykXE+6QZbJBbOxEPazqnkoz5cpn9GRgR\r\nNNy5WBtybr+ZBz2hBDqqKrtNfLgnuBqYHSdG2yIu3x2V6Kp+oRZTVgSsqJgL\r\n3umTMvsVBx91HY0b5Wgi+Fi1PPoduI74iXtzZVnf7Jfsysf2KyXvK4G22h3b\r\nJ9S+fiQhWx75hItdK8S9V271s8VtZaTekfzcHtAw/2EphsHjJBBosv7oiyei\r\n6R9N1GBmnE/zKIe/tHzmOyCF2azibyk2YBcb8A/60jZT+LifUT7K6QZTijGo\r\nOH5dCARPgjCtiiE/ommJs52EtvFrm7sO10hjW/jJ/YH6NgTpvB1CM5/qQWJY\r\nJsRfa6LlbHaX8GXXV+jurP6hEXTJPnV+u1To4lLlEpqc/YtMCiNlkBGJgm/Y\r\niPHPZn3zO6bixxtWaP7lyy7CAjSuck/ec5/UPycl1LVLHshQtqSZ1SiUawu7\r\nXJeKk5Ksyd+zp8ovaE8GC0w+JL+ePLKdTW1ssGbLiYtVcllAS3n07oOQLuXb\r\nPyQJpTBCLZfL/c+Z6zdOzdZYVVKNS/6FWY1a5CxoXyYIlvr4Idg2DHkPUMlM\r\nG6Adtu471POBohgMad4LlW7vr/DjNPhsLpybBbdfeC1Y+3fOoGxonkraz8m3\r\nkPACLXmYwhA9kFz1P/UU0qsWNfqfCx/KkDM=\r\n=duvW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-sqrt-to-hypot_1.0.1_1653164839199_0.45628506725710993"},"_hasShrinkwrap":false},"1.0.2":{"name":"@putout/plugin-convert-sqrt-to-hypot","version":"1.0.2","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert 'Math.sqrt()' to 'Math.hypot()'","homepage":"https://github.com/coderaiser/putout/tree/v27.13.0/packages/plugin-convert-sqrt-to-hypot#readme","main":"lib/convert-sqrt-to-hypot.js","commitType":"colon","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","convert","sqrt","hypot","math"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=26"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"8f4b74ed98a0994e8fec60bd22910a0ebbacf0e6","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-sqrt-to-hypot@1.0.2","_nodeVersion":"18.10.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-XycBeW+Oca9lWkgzwCwjLwPvovtN5M3zkDWnFLc18ZZUE3oAznAt+lop6sr9HP9UpXy4M8epHOtSBPdGqs//cA==","shasum":"e18dc15bd6cbc2b2562ed9ba88351f6550e0d5f1","tarball":"https://registry.npmjs.org/@putout/plugin-convert-sqrt-to-hypot/-/plugin-convert-sqrt-to-hypot-1.0.2.tgz","fileCount":4,"unpackedSize":4120,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC69FvHm0zSPhFSGUlo4gDEPVrZSx2pQJHsgdjlFiy/yAIgG/fnoytA5YPcI7A/KAni7CE7Zidh/wORcVK9bQo9AoA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUUdQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoeURAAlB8mbvEpw++xxj1RwYiLhENyn8Qxjx3PdVHQvVSYdv+LwPV6\r\nuPTxfk/+NmmxSjemS1SYt5ItqcAmch2VzY/50iU7tKiBIAR2GbAha8wSmjMc\r\ntW9H8Aa6HIckbMR8NeEtrGeNwkkhgBgb2UlOiuu77m1zjPj0etelERehI1ep\r\nh4nDJnoh5oL25QZ8WH6tWr8dySmiBJrYLVJovBQDQkZ3vGoUKw0eMB9nIVhf\r\nzXFPiKz4XVOzH/0dBqof86d610A6LoUgWAyTZXwEpzaxfiMZh5hW2ntDb+tU\r\n5ULMBL5Jm8noW6sH241BP4AKLkVnr7QBMxl4tFoKj6/YyURLc7ObAqqQ1Wxl\r\n6ieaM2iufuo4gA0QUiHsxF5Jpfo1/CB1mPaZ1RDD5xqyeSQvJbRaKCsQYgl1\r\nUiMwCqHRBUH4Z+aN36A4YNymstVfbjrbkqkFmWNPoGSa/gWA8jSEgexD3cbS\r\npanALe+RLS4W+uxdWRhjrQuWBZ5p7FQig32pC/G4H6FKqFTe3/orrDlk37gd\r\ndCMbVxU3X6110VDefteDVSevBUApZSsBzqX+5yh2ydWR8+3OmYGVD306O4sq\r\njRAFwXDPWmApEBeH2dfnH9A74vJF20S2a1ZvSLG8nmFiP6TTqK+6iZ37Zeoc\r\nMHwnYk6vlzdaxBwunbZmzUVDVe9BX42KDCI=\r\n=vzt2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-sqrt-to-hypot_1.0.2_1666271056730_0.20589339220750813"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-21T20:25:37.558Z","1.0.0":"2022-05-21T20:25:37.813Z","modified":"2022-10-20T13:04:17.027Z","1.0.1":"2022-05-21T20:27:19.343Z","1.0.2":"2022-10-20T13:04:16.942Z"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"description":"🐊Putout plugin adds ability to convert 'Math.sqrt()' to 'Math.hypot()'","homepage":"https://github.com/coderaiser/putout/tree/v27.13.0/packages/plugin-convert-sqrt-to-hypot#readme","keywords":["putout","putout-plugin","plugin","convert","sqrt","hypot","math"],"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT","readme":"# @putout/plugin-convert-sqrt-to-hypot [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-sqrt-to-hypot.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-sqrt-to-hypot \"npm\"\n\n> The `Math.hypot()` function returns the square root of the sum of squares of its arguments.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/hypot)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert `Math.sqrt()` to `Math.hypot()`.\nCheck out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/a35660f8883687ddfe53f8fbc36706ad/d83e26a547f71128f94af1d3fd542557ce820f1a).\nMerged to [`@putout/plugin-math`](https://npmjs.org/package/@putout/plugin-math).\n\n## Install\n\n```\nnpm i @putout/plugin-sqrt-to-hypot -D\n```\n\n## Rule\n\nRule `convert-sqrt-to-hypot` is enabled by default, to disable add to `.putout.json`:\n\n```json\n{\n    \"rules\": {\n        \"convert-sqrt-to-hypot\": \"off\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nMath.sqrt(a ** 2, b ** 2);\n\n```\n\n## ✅ Example of correct code\n\n```js\nMath.hypot(a, b);\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}