{"name":"@putout/plugin-convert-math-pow","version":"5.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.pow to exponentiation operator","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-math-pow#readme","main":"lib/convert-math-pow.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","remove","only"],"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":"8ccc5bad81f251222e8f9e250c20afa511a0baa2","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-math-pow@5.0.0","_nodeVersion":"16.15.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-CtXq7Li/W8f1LOWc6CLscx+d+UcoWvTu3qg8D5E1GGTtBgKbIvdmz1XVdcLmqJBEIOCTDzYM0JdZGNELg4hp7w==","shasum":"20f0d11f7eca1f15fae396ad5fcc738dbbae5924","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-math-pow/download/@putout/plugin-convert-math-pow-5.0.0.tgz","fileCount":4,"unpackedSize":3842,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAnmYsd/SKTXwBl0xNsEYo1Qz29tC+V1MuWoo+Mc4SvGAiEA2B4SoF4jMl28SnVywheTG0GJrjESjnjCVzgGgAXrIIM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiiUeuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpyzQ//Q2FkDaOPSEGOWN4wsZzR0LZq+VSXiL6zZOlfT4fqxafDJTJa\r\nBHFP/lUac2NR5Dg+rqxnardiL3VKDLv0iox9sx0RafRLzzgrTOEK26uMKDMw\r\n/fIBG/R1St1CzXhnnuWLCEAqgvmbQWdwbjXy1nPVcxaeba/CGKMVMTuKUzVp\r\nYPE801aw0rqJGjM35SvVpRuJpGm2SpwzvhpdCnb9DQ+C3vUSFo7/1ETUGA2G\r\nCmFb6DAdN+cZFMb4x+OkGmw9R/M0dcu3cnrWfRcFQU/GihLMZpnSkpaa9oUv\r\n0juwbdB4x07RLbeQsbjLX9atYuYB+DBmbY+LFDX8S5JOXPkFJ1kNcNHNiriK\r\niFwsDYOlsVFeLL+nLita4dOeRiKNz4lpQsOe43qQCkxNgzQcIDE3d49n6tEs\r\n5PbOtGL7j/oyqnwVSEMrv7l/Wf9bFXX6T/AKTxS/Ehz5q65/OYkekwjwKFqD\r\nuiGIqbdaGbaSUdFsYLZykk+DXemF/CQpkXbZ/8Stof/JNHY3JU1D/AQHwUXk\r\nfMw9byDEoRuQzQZGRdy+phafoo15Cl6CHwH1pDp/q/sXi5NdOn2iH6sUl8dW\r\n1KLx4P43hZ90P970HCUs0dtwXgLnE5zt/caG/35EaOqEHF2nILXBMaNxKy+W\r\nNN6mJkvejx5hpJTISyr+jsA3kf0w9zhSeFY=\r\n=N931\r\n-----END PGP SIGNATURE-----\r\n","size":1991,"noattachment":false,"key":"/@putout/plugin-convert-math-pow/-/@putout/plugin-convert-math-pow-5.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-math-pow_5.0.0_1653163950700_0.3493383118399127"},"_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":1653163950881,"_cnpm_publish_time":1653163950881,"dist-tags":{"latest":"5.0.2"}}