{"_id":"@putout/plugin-convert-sqrt-to-hypot","_rev":"4159159","name":"@putout/plugin-convert-sqrt-to-hypot","description":"🐊Putout plugin adds ability to convert 'Math.sqrt()' to 'Math.hypot()'","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:34:17.000Z","created":"2022-05-21T20:25:37.813Z","1.0.1":"2022-05-21T20:27:19.343Z","1.0.0":"2022-05-21T20:25:37.813Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"versions":{"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":{"shasum":"51713935893a4d6544104a236cc70f272beff9c7","size":2025,"noattachment":false,"key":"/@putout/plugin-convert-sqrt-to-hypot/-/@putout/plugin-convert-sqrt-to-hypot-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-sqrt-to-hypot/download/@putout/plugin-convert-sqrt-to-hypot-1.0.1.tgz"},"_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,"_cnpmcore_publish_time":"2022-05-21T20:27:43.920Z","publish_time":1653164839343,"_cnpm_publish_time":1653164839343},"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":{"shasum":"08b23a83448f4ff38de338fe05b815e82343c07d","size":1922,"noattachment":false,"key":"/@putout/plugin-convert-sqrt-to-hypot/-/@putout/plugin-convert-sqrt-to-hypot-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-sqrt-to-hypot/download/@putout/plugin-convert-sqrt-to-hypot-1.0.0.tgz"},"_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,"_cnpmcore_publish_time":"2022-05-21T20:25:43.669Z","publish_time":1653164737813,"_cnpm_publish_time":1653164737813}},"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).\n\n## Install\n\n```\nnpm i @putout/plugin-convert-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","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-sqrt-to-hypot#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}