{"name":"@putout/plugin-convert-math-pow","version":"1.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/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":"^13.0.1","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.0.0","_nodeVersion":"11.10.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-7dPsK3YE1MnMoDYAbsUEOWVKoR6GZcGZFEcw594lP1bCmdOUoUWHutMfNwadRK+95wq9Kr0OrhUFDT1h0d1GnQ==","shasum":"045e31e5c63a289077f66d21c79ae21a6cc34f34","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-math-pow/download/@putout/plugin-convert-math-pow-1.0.0.tgz","fileCount":4,"unpackedSize":4554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdR8ECRA9TVsSAnZWagAAk+QP/ArKOXOiQ2szcFLX/mxm\nLLjraGnjz167w+xeuHbHv3u6R7j5x6WVslsSgTQUcV/JPxk504QCxtMaK4HM\nq+mkQM6h1RMatxA/9/lj08QH1lJfm3QUgkxGMSGBifzEFPybcwwjVm+QAEiW\n6Hd2hMkieIww37BI7GCozYJXbYS1UmbYLa5sxloa2kKuUSCPsnoXIR7q8Y4V\npoBGQU8UOKM5SR+MokiwSiHH9mdPFtgxQ2raD7lkrZ3mYr8QEHGMP/3BWhfc\namyh/XuuuRxNGzZfJyF3sQTns/guDP/+PuoDfvNWshnjfDoCOFM6nYTnVsH/\nE9V+/Nkp/Tedg4hUIZrZcMHoUu8YIkGSmBFQC5SdhqvjHbqSBEJkDXW6wF+a\nIlYIcBv6vNoZOeiTABxHd7nVQd/BM6mjWk4AV1GOxtsHKu6M6bkU1J2iaqY1\n/fNHjQGYtJ1EKqXm8zSluEo2vwOw72DYJRE4QnpCFSgmP7u6Y6J2km7px8mT\nXSHP4sndWcJAAr9vKldTDR0WZsa2YupfdYKNMmnCY6eSU+mVHZLSMfltfYbY\ndWpK533bQvKZTQQelt+Q/A8UiUxbJ0J1hrCUWOJw/OpqZ7kvSpHFT+wsb81w\n120nW42ygurvvNdli1QpzCCaJoasdIZSNxkCQm2rVgqpxigpLrXdKufP891y\ndsZP\r\n=F84B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqPggRSjEUsVb8QWjTemQ3iz4JpaYVJuQ1QU7gWSY5vwIhANJNSHRDF8TagAWYzy7r6DQOXttCIWmhq8yXr40atDKJ"}],"size":2126,"noattachment":false,"key":"/@putout/plugin-convert-math-pow/-/@putout/plugin-convert-math-pow-1.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_1.0.0_1551179524136_0.629189961366986"},"_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":1551179524279,"_cnpm_publish_time":1551179524279,"dist-tags":{"latest":"5.0.2"}}