{"name":"@putout/plugin-convert-imul-to-multiplication","version":"1.0.1","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/v27.13.0/packages/plugin-convert-imul-to-multiplication#readme","main":"lib/convert-imul-to-multiplication.js","commitType":"colon","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-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=26"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"e4ba505ad1e31f7e58708a60af9cafc46675b89c","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-imul-to-multiplication@1.0.1","_nodeVersion":"18.10.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-VCjEQDnARRu1R0y8lUM1p0C7OOtRA5snk9jjLc32eYoZLTAMkrMcoc9tyPlbnBZTUwmkWQGwecifKubEKtecCQ==","shasum":"00de3b18ad30582e26f8b892de26b052390ea957","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-imul-to-multiplication/download/@putout/plugin-convert-imul-to-multiplication-1.0.1.tgz","fileCount":4,"unpackedSize":4024,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGVp3s299TA6MxqF2cBXl7AF8sXf2icx1Ga0Za/ksiL0AiAZute08YwbPOxDq8Oey+J+VU8FEmjJ5BW+rq9FI5jynA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUUv+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrMPw/9E1DInzt6NNVMHU/7bKc5dvCAlj+I4qHoKXu+tmOpRdcZ3lXX\r\nkirwiUflVW+HGKNdovg3AOuSDaGDd3KGHY0KrzUKuzAaaPIsm+95v5mrdyEP\r\nlQKRGYdpo/yUkBSS89WatJ8bZOBVa93WVe/5HPg3h/qgrh9HUGQwfsijbySM\r\nRcgncpTVCCFOFDUabMwA73Y4jtF1Wx9GfwoRg6sc0gUS5KOc58hiuv+SWAsD\r\npTJOpD5TQinrjCtc46kAt5N7n7N7qZehoYr+HLkSod3F5+FVtY+XU6m6tXyZ\r\nfgCSxGsK7/319OAZby418pK9PSqJH3ck3enXu/rhIwevi5KPUl6r9s7nIK4U\r\nwlDii4xnF0RepLHy0uUYl4a9QWFHcyB4B+raQKQ/Dulpok96zG6XEjeJbj8I\r\nzgm8eRHX6rfmmj3n9gRyRjmI7zkMPQ8FtZRb1yvXV/PipmmGzzotaG4oXk8f\r\nnhQnHcxm6PNpTQVJrfGazq51YN8gUAkV/59m8RqgwxM8Mcmwg7NCyhoYVlgb\r\naDEg8BDrIJqi7pSdgPaIEWRAwnGbs2WrygJOE2B3vghQqidOe2ZdVc3uEpvt\r\ng717NcxDzKBYMaqQbGgbwm7+Pnxj0zCYiXjrv+WHk9qbgcxYWyn3JNrIaSm6\r\n3ZvTsSJ2/kvQ0z9ZAjhPKrONqIUSuRPuSxM=\r\n=MOB1\r\n-----END PGP SIGNATURE-----\r\n","size":2105,"noattachment":false,"key":"/@putout/plugin-convert-imul-to-multiplication/-/@putout/plugin-convert-imul-to-multiplication-1.0.1.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.1_1666272253910_0.9380806954119516"},"_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":1666272254108,"_cnpm_publish_time":1666272254108,"dist-tags":{"latest":"1.0.1"}}