{"name":"@putout/plugin-convert-math-pow","version":"4.0.0","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":"http://github.com/coderaiser/putout","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","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","remove","only"],"devDependencies":{"@putout/test":"^1.3.0","coveralls":"^3.0.0","eslint":"^6.2.0","eslint-plugin-node":"^10.0.0","eslint-plugin-putout":"^2.0.0","madrun":"^4.1.0","nyc":"^14.0.0","supertape":"^1.0.3"},"peerDependencies":{"putout":">=6.20"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-math-pow@4.0.0","_nodeVersion":"13.0.1","_npmVersion":"6.12.0","dist":{"integrity":"sha512-KyIOdi0od8/AhDemjVeVSI2D1Mq8cIMdWiKAAawYdiYB+tUlGoKUnEkbg2XXdm5jt3gy5+bGodp806g8b16KHQ==","shasum":"bb22a8ea97df32977852e462ac1d81aba32e7022","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-math-pow/download/@putout/plugin-convert-math-pow-4.0.0.tgz","fileCount":4,"unpackedSize":3616,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvy6ICRA9TVsSAnZWagAA7c8P/1tRt2xo02hvHTWJrdh0\nnZEcDWBqoBTdeF/eOEqsT7tp4Po60f1fILOZrgn+vfN3qK/FICKVI8HxTbBf\nYuFV+Um63In+xL3b9N9dl/NjbLkKvhIDnulx/he/zGRMFd7UOF7X/FY+mDN/\nLbdvhmsS/LSzkWOttM0F/pjuTDy7Wot9ZqdA3W0S0aCRq8pq+ADuu57vY+zq\naymUUSlf8OcD0jsIT0MHYygKmHW/t0dxxwnW/KOFUty1SW6jHBOPRt62A5Gj\nov+sRHDrDlUUZt5bD0eP504gNTGBeOwPEDZXXhNZe+ZlmGVDlqaY43P9P6f8\nenMAyE8fC0K68eGMudYeA4qFeZKj6nW4LCy4l5qSheJW4txjekJ+V55kVd/g\nKiMHswBYnfhaywHFiWpKJ8duZSoKxn0X/3LKDXp1QVOoArnHcGX7tN5XW7h1\n2Q/YQY64x21jVhiP07LTD1cIbotoKu63A8T95a1Y1zs1kzHUpCFXi0vLyQmr\nmUT3cDkIGwxPEZjmnBCmyQW2fAJj2NaFFO0VhHaUxP3TUiTzZHKw47cBAgdn\ntOU8C0GHBmVbSzhL4z+O2bbEmKTq5z8Rn9FquhDeofdL/QT+v6HD4tHQNnUE\nIQk8KEHZsa+DyUDt/h9LEfC/a84T8IZO2Uk0GwI9aFPNIYnVcJrWNcJB3TGh\nv1y/\r\n=LuU8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtUxkxrbeYc1+X+m46UOlA+TtUTZhaqsx+843Sa8ZNsQIhANRqt6M1XYNpZrWaqNmJFN/lA46BnEkbVJqdgZhS++tS"}],"size":1861,"noattachment":false,"key":"/@putout/plugin-convert-math-pow/-/@putout/plugin-convert-math-pow-4.0.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-math-pow_4.0.0_1572810375981_0.8194616462859401"},"_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":1572810376106,"_cnpm_publish_time":1572810376106,"dist-tags":{"latest":"5.0.2"}}