{"name":"@putout/plugin-convert-math-pow","version":"5.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.pow()' to 'exponentiation operator'","homepage":"https://github.com/coderaiser/putout/tree/v27.13.0/packages/plugin-convert-math-pow#readme","main":"lib/convert-math-pow.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","remove","only"],"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":"26bdfcf42cc0ea9130a373d972f20d7678acb3e6","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-math-pow@5.0.2","_nodeVersion":"18.10.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-vyyAvj47Ijk4YWpaD+SSmcxGS8chq5R8GwVs+c7K9HOXJpwEHWJ9MGuN8lMJoxruBp0EgrlpiUt9c+i1m++dfg==","shasum":"f250ce8aa9e1acc96823e161b8b84a9a8d7844c3","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-math-pow/download/@putout/plugin-convert-math-pow-5.0.2.tgz","fileCount":4,"unpackedSize":4195,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmXs26RvqYK7hm1poePTKW0zkRQ/mz8fbG4a8xsl7yLAIhANDqYKcDSs/YRhDk70yi57rS8ENlkWf0LA+E1cPsjut7"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUUkxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRsw/+OU2rGpPU8UvOwyQvGp5HRpmKb6UjJ+cltbohoFQswp08wxqK\r\noQJ03wS/ipiZUBgQ/PNF2tYeTRBM6k88ARGoGqwBVn1zpA+uhHY0IQBTLBTm\r\nyK5tuODnT2mt3x1M8hh6/k4MoAXj/JQ02J+fpeEfiB4CuUP+5mzTU/srApCB\r\n/P+9xC6yAEU0O0rQSNYs0GYMcHQrO2tHti5v0KXvqfbkv8db61TW33X+b3Ei\r\nRIxouC2OmX6QDxf1VjXyPi9VkHe1oTxw5bFDVZk8r6ufSmhMl+9l/21tDed3\r\npqQoBfHmDw+pGC261tVbAZVgUc3Rtt3WX2lxxmtOT6Z+n2yH0gGcBiKinz5W\r\nvHm3aCwLOWuA9qm0AVfFQ/pbqjlcNCH3Ya6nEK16w/kFKp9QSuhJdBrVGkoU\r\n6/l5/UFKYyR0b7Q94jYTDM4Cx0kdXM0h6nN3XNWYKQqmLGLdMb4IjOI/m/3V\r\nDKENFAnjOEJ+v+qq88q78VHk+KsbNhHV9ejmK+zvyAqDRoYWL6d3lyp3rlFq\r\nBCsgNwIhzbFMJSWG2qaWTZuVSDNESEhDVqG/71KuKORXSfplkI/IJihb6s2o\r\nk29kppFgOLKg5AgVO1yV47nPJyCAFmpnb2iE51wLUiEUej89s5xegj5fDAmb\r\nCIoEK2R+Pwva6PXG3kFo6a5dKQFCrvAtit8=\r\n=VuA/\r\n-----END PGP SIGNATURE-----\r\n","size":2097,"noattachment":false,"key":"/@putout/plugin-convert-math-pow/-/@putout/plugin-convert-math-pow-5.0.2.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-math-pow_5.0.2_1666271537000_0.3775445919978544"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-convert-math-pow [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-math-pow.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-math-pow \"npm\"\n\n> - The [`Math.pow()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/pow) static method, given two arguments, base and exponent, returns baseexponent.\n> - The [**exponentiation operator**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Exponentiation) (`**`) returns the result of raising the first operand to the power of the second operand. It is equivalent to `Math.pow`, except it also accepts BigInts as operands.\n>\n> (c) MDN\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert `Math.pow` to **exponentiation operator**. Merged to [@putout/plugin-math](https://www.npmjs.com/package/@putout/plugin-math).\n\n## Install\n\n```\nnpm i @putout/plugin-convert-math-pow -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"convert-math-pow\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nMath.pow(2, 4);\n```\n\n## ✅ Example of correct code\n\n```js\n2 ** 4;\n```\n\n## Comparison\n\nLinter | Rule | Fix\n--------|-------|------------|\n🐊 **Putout** | [`convert-math-pow`](https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-math-pow#readme) | ✅\n⏣ **ESLint** | [`prefer-exponentiation-operator`](https://eslint.org/docs/rules/prefer-exponentiation-operator) | ✅\n\n## License\n\nMIT\n","publish_time":1666271537242,"_cnpm_publish_time":1666271537242,"dist-tags":{"latest":"5.0.2"}}