{"name":"@putout/plugin-convert-math-pow","version":"1.1.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.3.2"},"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.1.0","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-c00uTvGSwrsl2iPXI9bOzyEDeU/VzbiM7bGlaGHh4JIfy4iRzpCsljc29YLzSmnYLncOU2hvHX9IoxFj7NNRWg==","shasum":"f2e8c03f6e84e6250f48ccd8a486dbb123886489","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-math-pow/download/@putout/plugin-convert-math-pow-1.1.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\nwsFcBAEBCAAQBQJdA3FZCRA9TVsSAnZWagAAAioP/2ox8T4ut4h0pNxErNQG\nGIaS5VA6r4Yn2Ywok1bN8rVOoMdGvqpNuqH0eFNjZH5UwhSx9PCRkt/5e9m8\neB1Cd9zq9FZAS+Udob3EYOGZkiJ0Qf2GWLCvpEndN67+ZUfpMqJ+ThiM8vMo\nEZpVT/MllMFFcuAiqfmfNiDW7XSLEwdSWPtLD0I3Sms4V7e1Ck39OmdatWsU\nGbu3CGSnAaoX9nagKp4Om5tX/KsgLFjFlOC0phR2Eh24UNrFjejqO4rL0EWZ\n2bWCoadOz7xX5jWEL/JqDm4O0n+aXXtZ94i3pQS7Bs+mCLYYGUFidJtZXD5M\n5x/3B8HDS+mPuHZBCSH+EHqhd0FVDIdrs0rSnU8pQGykHUV9QcJaVZCE1/H5\nLN2wzglwMZquKLSh8KSD16eptfQ/BwCvwfyYMR2ppsMPjGvnT/GeR7huR0aW\nxz6U4N0ZMvA+VhF5Wh0SJsmNvEK8sXyNNULuDVUXCuH6LTBHyOoCT0jLMPoE\ni4SKCOKRGuj1WDYVN+jGaI5C3aGFgl0mfJzDvnfbYvHj6+xapKF1B9kRr1Vy\nLFhOHXpaWm54WC/2AMyUegbMvFZAxCf/hi12XyKDmJzSlhiYZAvpYSuX8XG0\n+z7IiBY4KHR5LgI9rC0PU+p+8DdK/nUL+lhRzujNKwfSXZ3LERZR7sILqwTT\nuFax\r\n=52k3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcd94bxvxopB31trXF+D7NL3E/BrbqsFxQe2uh9gZmkgIgDBGm4PrFH6aYxSAldd5crCbBkMnRTSvAZ0FleYIJvgE="}],"size":2129,"noattachment":false,"key":"/@putout/plugin-convert-math-pow/-/@putout/plugin-convert-math-pow-1.1.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.1.0_1560506713281_0.6497121166605817"},"_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":1560506713454,"_cnpm_publish_time":1560506713454,"dist-tags":{"latest":"5.0.2"}}