{"name":"@putout/plugin-convert-math-pow","version":"1.2.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/eslint-config":"^1.0.2","@putout/test":"^1.3.0","coveralls":"^3.0.0","eslint":"^5.6.0","eslint-plugin-node":"^8.0.1","eslint-plugin-putout":"^1.3.1","madrun":"^2.0.0","nyc":"^14.0.0","putout":"^4.3.2","supertape":"^1.0.3"},"peerDependencies":{"putout":">=4.31"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-math-pow@1.2.0","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-jwOG1ViIiC9gjCacNWe8Em+WlLzLcNNOZXRfZ+6tdmYlltE4BuuaF5rfCaSG3hH5PsjanqFTWe/5kziRj+j19A==","shasum":"9dc612c4e96eee0038cf30b03447c66b978957e9","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-math-pow/download/@putout/plugin-convert-math-pow-1.2.0.tgz","fileCount":4,"unpackedSize":4578,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdCh+qCRA9TVsSAnZWagAAfEAP/jNzT5BDHjbuuYAzvDsL\nsuRKGtm3O+w8V4B+LnfIbtRnw52Mxf22IU+UTAkmQ6WWWIgpbi59UKJmJh/M\nWT7irbivY0Bm79FmattBx/U7e5idvyV/BR8q8vOJ306/1XtfXmRSK3XBb8IS\nx/+spB77XyRQKXbtk6qDLagKgKAGglQ6203wOkwFVKMNCKjOxJetl2tMYxrt\nvtUfovrjKYROSbAWtAoMDprGabxLf/dBycX3DFsOPCEAj8RhnjSRAEGhYWp3\nOY3VZVa2RL9ibk5H18ty6/KaJiJZuvqvnYPURnbH4jplkyTchd9wcp64Fv/v\nDtcQDvhIFudQdwzOGTEIapfLRoGlWSjO22XgwfknamzyfguNhv+oXs27PCuL\nAq1fpXVcWl8JuUAKyf2Dsq/zv/S0Hyjp8XaMB8lHIMvlAkpRZDg2RkYeamgM\nhY0tdIQokVEsayeP6OqJJsqN7ud+b2FlfuD11vpyQzlyn+1FrODQMKiXOtyZ\nOWMnH/glv3dHZRw2p0WLcxgRAflPd0MOzy4JsmmO3wRwpHJgCladRbG5cIRv\nRuTbgLQVOZK/oeyZqyWl0HvV1lLi4RV16P7ix9VoGl2kPLO4sFxgSya/B6oJ\nMuQcxL4xEa1hDqlGMY+pEE8iIyeclKp2lQtTl5gjRlFAgcLtD3zyNXjyEEhc\nh9Cm\r\n=ljuo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCY2Mc6gCs+Pf0MyJ6GL6L6hoQqZi/e46XD2rVmuKuABgIhAKfjEPpA6Eg09JxPVsPi2EaiXF51oeUnKIPlOAzuoDNx"}],"size":2123,"noattachment":false,"key":"/@putout/plugin-convert-math-pow/-/@putout/plugin-convert-math-pow-1.2.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_1.2.0_1560944553827_0.4815160910752945"},"_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":1560944553941,"_cnpm_publish_time":1560944553941,"dist-tags":{"latest":"5.0.2"}}