{"name":"@putout/plugin-convert-math-pow","version":"5.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.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":"583e15ddc2583f8b07f16d71ef18629a8efcc7b2","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-math-pow@5.0.1","_nodeVersion":"16.15.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-/WxkeVrBIjK2qPx8MJ44wVKJ66EQHfGyfVjxLzjHmW03GTeL2K5t9XovjkwfGXZ7tk96tZ4A3atjlU0Lr5+MSA==","shasum":"259b90a9ef6635ff59c5fec1c517f67dc137bc59","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-math-pow/download/@putout/plugin-convert-math-pow-5.0.1.tgz","fileCount":4,"unpackedSize":4165,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBOh57KjfcVSIUAtLBaNtjMOnW9xuKZ0pstNNiFcI4F8AiAt/Sr3LNakQCJGX46bNeg65t4rGtHYdyLOrOf1PkhYpA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiihURACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqK1RAAo40wT3IHXyMDnrIQvB5BY2OLypFlAHn89+AjLdmu72FU3kb3\r\n4TQs5qH1BR9wwb3g2+uWVf/ZOHdHDsCO9g/6T8a3Xz5ARuo8JpXlB6ArHwm2\r\nGXqxnDTWZ1yxL18BUtfnxQYW4ihAiWsmJ1iIsL5F076djfFef8ySzMvPkGpG\r\nVoGgJWi03rcE9ScZWdCBgKXeRX+zrG0nCF/rjjLr7PWJImTH3CbclqD6C92P\r\n0tTSqu39ljF4iu2iKRqa9aqcH7A5dEC9JCAUTsyPB26yipp4h7bBDuW8zHyr\r\n0g0D7r7vodo3omVnOqgRoknapwtm+XybhSL4fLjhYrbuF/KCTbVGZ9+Blq2m\r\nuaHBWAiMk1eQx4Q94I2VKCvZKQ9NtMts51ivrBy+yZf91zWd9PtkUIqfxWTx\r\nw/0U5/Xbz6G31XquMDPry8aBD7YrZx6iYd6RBzJXKoznzCmgENQqlrfVn5wk\r\ncjnkwRRW7MV3TjCgijGdIqUy2DXAlzN9qH0vEIphjftu+bzd4I76CzRufI9e\r\nnhWU9tGvtqFHTYgf/EG04VhBFnWT3HF6A458j8hOfVyhHtCrhrKRQ0WkGrT3\r\n9Ba4enfp/HTCRu8azYt3SyYyus1SjGAvG3w9/RrmeLqXUbv84a334G2ES2Z5\r\n5zld8Blt+qiBvAE1Z0izspsmstNHywQyzas=\r\n=thgU\r\n-----END PGP SIGNATURE-----\r\n","size":2086,"noattachment":false,"key":"/@putout/plugin-convert-math-pow/-/@putout/plugin-convert-math-pow-5.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-math-pow_5.0.1_1653216529120_0.9517885152154013"},"_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":1653216529342,"_cnpm_publish_time":1653216529342,"dist-tags":{"latest":"5.0.2"}}