{"name":"@putout/plugin-remove-useless-replace","version":"2.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless 'replace()'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-replace#readme","main":"lib/remove-useless-replace.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","replace","useless"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^13.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^26.0.0","madrun":"^11.0.0"},"peerDependencies":{"putout":">=40"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-remove-useless-replace@2.0.0","gitHead":"ffb41dea010ecb94d87e801294cdeba066bff09c","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.15.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-Oc+X/64LZRQwin9ME+tpHKGbQeUuIJiODvcanNuASDGl/kL845pgB7kkg/TbVrEB0v2hUOw9HkAz7MmFNfpcAQ==","shasum":"8a322f2bd227afac29c56c7c3962a405b289ef7e","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-useless-replace/download/@putout/plugin-remove-useless-replace-2.0.0.tgz","fileCount":4,"unpackedSize":3718,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGeJQi6xvucNEg7hnfot6UGr17gUPvesMFSb+4nDvKJtAiBLsF92hb+CQ0ysapRKtwgJwzVTM42cynOisrq1RwJwrA=="}],"size":1951,"noattachment":false,"key":"/@putout/plugin-remove-useless-replace/-/@putout/plugin-remove-useless-replace-2.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-npm-production","tmp":"tmp/plugin-remove-useless-replace_2.0.0_1746788241991_0.22187771747967155"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-remove-useless-replace [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-replace.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-replace \"npm\"\n\n> The `replace()` method returns a new string with some or all matches of a `pattern` replaced by a `replacement`. The original string is left unchanged.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to remove useless `replace`.\nCheck it out in 🐊[Putout Editor](https://putout.cloudcmd.io/#/gist/a7697acfe3a2f9fcac07a205a420ea83/3b5a99fa1be2ce5268c33bfe51826eeb6def1ed0).\n\n## Install\n\n```\nnpm i @putout/plugin-remove-useless-replace\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-useless-replace\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst a = 'hello'.replace(b, b);\n```\n\n## ✅ Example of correct code\n\n```js\nconst a = 'hello';\n```\n\n## License\n\nMIT\n","publish_time":1746788242169,"_cnpm_publish_time":1746788242169,"dist-tags":{"latest":"2.0.0"}}