{"name":"@putout/plugin-remove-useless-replace","version":"1.0.2","type":"commonjs","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://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/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":"c207818ed3383d1163a2bf43c0f1dc84a49747cd","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-useless-replace@1.0.2","_nodeVersion":"16.15.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-aLPLOcGRo6HRDGuma68a6JDFWi5CQAukhw2NIJfUrGFgacbEZ9k3P0nXPYSfO+pG20JdDM9cCB9iAvyW+9Y6qA==","shasum":"1d8c7941bd21c45a986777fd76d3e0c856dee851","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-useless-replace/download/@putout/plugin-remove-useless-replace-1.0.2.tgz","fileCount":4,"unpackedSize":3697,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHz2X71veiqiXWMO97RMK3xpGqmpz1JC5BekDKXFJMlAAiB43PL2RAbYxJkAIZQfEQdMrTiKC5DJoQe7l0VRQbqQhw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJih9/uACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr09w//YgxkLmECbek3UQOETNl9UXJMKFQ37bE4ZbesvUQ6cPRrroTV\r\nm/n5V2gJKjLtQBppiiax8erL0EsqsUpj9xgF0eaAybEKvlNyiurbnUYAf/PI\r\ntCA0FVmE37273Fw5zrXcTCopDYyL3t7C3z+xcmLQctxOHWUQCODfcbOrxWkh\r\n/c/mwlrDSzTQgiE8jUCzwDmTCLKbNBm155sTTx2ncnolqCYs430pbjSlkWY5\r\nOCD9F9+M7zQHc1402V69zEuDurfm/qJLq6J/PA8q1mxS5t5yuG1CzPXGVoS3\r\nryIFavw6TxYJHLWX8mF4dxbDOJJ1ejo7Z/PnyPb69jJJWAnRG8CQjxuGXYsZ\r\n/rDz6hGyhrEGbeaN3FwMWttdkuFfwCJ85FbdOfEje8ua8U2f69g6RWfUgvcQ\r\nbmY4tLfzLfk2ATYiiov/+qvnMfhyFJcp/0Czh3e4MErEv1qnc/pnhSEVNJI/\r\n0czXBk3n3B1KbM8qsVHSQbzPqOUSBImEpmNEyxvcplhWlNyUatR8BEc6av9o\r\nkl6KpZEHQyA9C5Zzoy57BUDxmON5PmvrDqvIOHJFR1Y8HMxOnIDHrZG4qB7S\r\nWLV7kG1+JE4dEIC2Sw3gYHBGLgg6qPevyyzA+2IT4KWvdF0Gca/XUxj6YXjp\r\nCtChAnXuhDzkyPLdV8XL6gIbI/cEKltf26I=\r\n=TJ6y\r\n-----END PGP SIGNATURE-----\r\n","size":1954,"noattachment":false,"key":"/@putout/plugin-remove-useless-replace/-/@putout/plugin-remove-useless-replace-1.0.2.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-remove-useless-replace_1.0.2_1653071853851_0.2859134218974486"},"_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":1653071854064,"_cnpm_publish_time":1653071854064,"dist-tags":{"latest":"2.0.0"}}