{"name":"@putout/plugin-convert-math-pow","version":"2.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":"^3.0.0","nyc":"^14.0.0","supertape":"^1.0.3"},"peerDependencies":{"putout":">=5.12"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-math-pow@2.0.0","_nodeVersion":"12.10.0","_npmVersion":"6.10.0","dist":{"integrity":"sha512-dWoB/YzbNVcDbML0q53TW0R4Wtxd88ABJvyUADC4JNuVcnVqzcGLO7ZF2NQfXQG36KwWLGeO7LTFsN7T7DpNDA==","shasum":"7378c65c7cdcb05b3e57118ae30ea3c7e280bb9c","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-math-pow/download/@putout/plugin-convert-math-pow-2.0.0.tgz","fileCount":4,"unpackedSize":4047,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddNK5CRA9TVsSAnZWagAAe4QP/1fbJRNojhVxD/RaqJgh\nfuByMBU1dk4IdwWjowY3MW0rHPy7DX05AK0T6lYEgrJyNvgEOcR18Cj8dOP7\nrfz3Dah9L9x7InO+BcmBemq4W6Yn2RvHpvzRoCSkjRuDN6IoslPCsah+XyhB\n6jzNTYT3dF76ExpFG7Qv2w/2pJJgabgVeHj9RtMH1oPF9GuUFVUTtew+9f6b\nOzyws+9sqDZ+XZjTKxvqH2er2acC8Lg5V/XOjZW+iF1MuYn9m0GK1FLSSVHU\nZpwkAMWzRJZjJ+OdZfLjToA76U0hnfsiFCDbMjHmbDikITYa4gtWWWvSolP4\nsLeVGrnOOIsmTWRjQ3cRTRIgQNCJM3JjXtgmtNNuf9KCQZ3JueeZlGoAi9Rp\nhMNIkHI8qidheKte7mzVA37OfezfhLDo+8wU7Hzvu4JkIBBNr0dQZb0Z8Txc\nrq+gBgLjw5WXKUXebMNGjNsoj1kSlRj2eYnZC+I+N1yHFIVdJt6Zgi/LaJnu\n44zC5XlekctJyMQOZW8HeaclcoVN7YgBOiKgwcambS3R/K2KJY2l0TipDW7n\ncZaRyDEhwcsCyzb/HGOkwHJ6Fkl3YXA/QSl6negSg3X7BAe87KiGSc1SxdaI\ncboFQh1Y+fgc9H1Ntc0SzKzn0pdnya8pyFGGNAmUuixlPeIZDb1gLliU/0d+\nhZQl\r\n=2WG/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICxBUvLe/2HSe/qllDHVWe21MK+u+IcXcV7eLk73xdkYAiBi+PGc8GFc5dlGg5tT3pssBbeCeps0ROjhoBux2AsQaA=="}],"size":1999,"noattachment":false,"key":"/@putout/plugin-convert-math-pow/-/@putout/plugin-convert-math-pow-2.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_2.0.0_1567937209223_0.6318460145772875"},"_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":1567937209377,"_cnpm_publish_time":1567937209377,"dist-tags":{"latest":"5.0.2"}}