{"name":"@putout/plugin-convert-math-pow","version":"3.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.24"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-math-pow@3.0.0","_nodeVersion":"12.10.0","_npmVersion":"6.10.0","dist":{"integrity":"sha512-zQFJ5sEDsIzUhDA8GGLJzivRHkWRFUvfTzjowsYWjR2GgrP4vlyywbTN8I49BkvDDQJqw1igl141sf3aIwetqg==","shasum":"9719e7c33720a106e61c1f09827974a63fa1c7e5","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-math-pow/download/@putout/plugin-convert-math-pow-3.0.0.tgz","fileCount":4,"unpackedSize":3884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdeNx/CRA9TVsSAnZWagAAL+MP/A2AUVPgeq8qiL/ysIKB\nNqmi43p9d2ZRMF8eqsjuEr4cWg1VfJLo0endWaWDEmfuGSgXxnHf3VMIW4xZ\nQjQ2pxoZmcrY4/SLI2j/MNrREUFc4Z2hk8OmsDzuAs+eMS5Sij8t4O+E3MsP\nss/HfzEZlUHi9tPrrKZJbBi/djwRK9tnVWySIn+3zdTGmFFNEE/R5I7/fyDA\nU8/4TLeJ6DDUyC/VmyJGAsflL0l84XQHfyXLvjTMyw6MFMGZVXcq/x2b58ld\nLXSdYO/4+64pq2UDExGdeFbW9+ok6tbDEuizcuMLfROh1HmANktu3sylCQdo\nTz7O3JTNY3Gu2sNhJ0SQFq6JZ1QdJvjaha0KI8ioXDoP3T/1t/fA0iBWl/wO\nBHEKj3tRZ4jirNAAle8UIqn2XmEFdcsh3k+5vgPUQjsFIWmJAINcsljc9UGx\nhQYgG3HWnmSV3RIguVxKjvTZftAbxelfm/nF3hhMgKvQh3mDbp5fR/lnWokP\nJjcD4F9B8HYe89LVpWmzQuIXNicR0yOCbl0MSl7xwj0hX0y9BiobOGm4yENS\natTGTImq3MFOe55ho49HbI+sKQfZrZEsU6LSL/nfxGJvnoWHkEBOPlw573KW\nMKcExVz4VTdStIYHFSM2pKNMxCdcJ27RTadjOBab/jWvzbP6EdhCPSFLsi2M\nJEcI\r\n=CCVF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3K1WslJGN9RCh1WMPqJof40Qgj5n6CN2HLOA782d8UgIge27NtyDF0TEqFff2ad6AfMD3J68ddBq5hmytMdOcSPg="}],"size":1954,"noattachment":false,"key":"/@putout/plugin-convert-math-pow/-/@putout/plugin-convert-math-pow-3.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_3.0.0_1568201854543_0.12792698312615025"},"_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":1568201854656,"_cnpm_publish_time":1568201854656,"dist-tags":{"latest":"5.0.2"}}