{"name":"@putout/plugin-convert-imul-to-multiplication","version":"1.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert 'Math.imul()' to operator '*'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-imul-to-multiplication#readme","main":"lib/convert-imul-to-multiplication.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","convert","sqrt","hypot","math"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=26"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"583e15ddc2583f8b07f16d71ef18629a8efcc7b2","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-imul-to-multiplication@1.0.0","_nodeVersion":"16.15.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-BCNkkZVDWGr1kS8NDO0XrPplc238UGrzZQMgIKA1Es4oCI0V9UcvQ84ykcLE9sDzMGo+XojxIhl0T1rXUTtfrg==","shasum":"7e462ea4a5b3723f6ae6b5f1a8b2df37b633ac8e","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-imul-to-multiplication/download/@putout/plugin-convert-imul-to-multiplication-1.0.0.tgz","fileCount":4,"unpackedSize":3914,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICPjP348y5/bcRbVb51I2LfQ3y/LhOpLDPkAjKeJ4ak4AiEAs8R5+5pie3ggdCWWQmrnqEjacv8W6UqBuv4joMZhFrE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiikE4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq4lQ//dUZ9bWB8cT3SImF+k9r4GZh4Pah3TqueqnrgKcKXkPQS4J75\r\ntNPvZX3r+ZXHj0jQp4WKiRHag4EUgfFowBy6bbJtENWmCWRS1gY/KO0fNWyn\r\nSaOd4sQxhpTnxeQ4kiYqGYjwL8+0mOaefr66RgbXF3qM8ywjUR4n+d7V1hSt\r\nYtWCnzblPSMrg9hKXkkgw7TSFun68gUjNkNByejZK2oIBbdYg5PnSB0nCP6t\r\n/VHjshl7pG4Lsbs4XCnQoirmWYcCW3Jtl4pHn9NJeRYegHgkVc5zz/hXrG+x\r\nxuSkYRft/1MWPVkIYYdqfQKjKBaFTGACHocDyj4RrvZx0qHhgNXJKv+RPrzM\r\nk1FJ34fMDGKQ6aqtZW8ahs8i3FhjgE8cHyJhmDFHOtPE7KglPCx9FqYUvpoj\r\nbKgtuomtDeCvp/yuhET2IbqPe5rpUFRnlauBzqrnUdswszmGuZ0t9vdr/Pfc\r\no5qCSlAed0AbronsU9Qe9DklcKe4vacRbU2xT2y9jj7yQ8Pjhx5HkLmxIuua\r\nOwq+JrRYdtIGpgE6fqiJkVei3gUdiLjC/ciBUFJrzEu6gX6+ojWcueu0+mno\r\nllQgfnf/2eJ87poA/OLaATerjwbIMTTN3VnmtctkBLR7GpF6WtffXt0vJ3Pd\r\ngIl3Zj28pLpQ7XxNZH20PCP2T2/A31TdbBM=\r\n=TNmv\r\n-----END PGP SIGNATURE-----\r\n","size":2059,"noattachment":false,"key":"/@putout/plugin-convert-imul-to-multiplication/-/@putout/plugin-convert-imul-to-multiplication-1.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-imul-to-multiplication_1.0.0_1653227832306_0.6912316254046926"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-convert-imul-to-multiplication [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-imul-to-multiplication.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-imul-to-multiplication \"npm\"\n\n> Multiplying two numbers stored internally as integers (which is only possible with **AsmJS** with imul is the only potential circumstance where `Math.imul()` may prove performant in current browsers.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/imul)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert `Math.imul()` to `*` operator.\nCheck out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/cef45d5cc2bfd0156ed8d483cb6104d9/89ab39b05d3093d399e718f5615efe92f484c538). Merged to [`@putout/plugin-math`](https://www.npmjs.com/package/@putout/plugin-math).\n\n## Install\n\n```\nnpm i @putout/plugin-convert-imul-to-multiplication -D\n```\n\n## Rule\n\nRule `convert-imul-to-multiplication` is enabled by default, to disable add to `.putout.json`:\n\n```json\n{\n    \"rules\": {\n        \"convert-imul-to-multiplication\": \"off\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst a = Math.imul(b, c);\n\n```\n\n## ✅ Example of correct code\n\n```js\nconst a = b * c;\n```\n\n## License\n\nMIT\n","publish_time":1653227832474,"_cnpm_publish_time":1653227832474,"dist-tags":{"latest":"1.0.1"}}