{"name":"@putout/plugin-convert-index-of-to-includes","version":"2.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert indexOf to includes","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-index-of-to-includes#readme","main":"lib/convert-index-of-to-includes.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","putout-plugin-convert","plugin","convert","index-of","includes"],"devDependencies":{"@putout/test":"^6.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^17.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"bd6a80bc81d930dc3258194473966591d0dc1bbb","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-index-of-to-includes@2.0.0","_nodeVersion":"18.14.2","_npmVersion":"9.1.3","dist":{"integrity":"sha512-Zhr9MgX/LFDsSMfpGXCdN7xHyr1z/A9wYC/JBtgMXU+aEC564cxqF8syLzHykCR0vkaZBBZMHrQ1T9v8ZoyFFg==","shasum":"1ca1ded212c977c86c1f36ed9d51be634c5881a5","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-index-of-to-includes/download/@putout/plugin-convert-index-of-to-includes-2.0.0.tgz","fileCount":4,"unpackedSize":3805,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAq/vLmPsyqZ1buXJKDGKsneWd/4E+85tuyytLqzV4xAIgW7BrXVU6yzD+FVE1fypD6ndz/P/XgrJCMTayx1LSXok="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJCL9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqaAw/+JyLf03/+nRllHQmZyV/lHbSmGZZ1WePhbbZ4uR70Ker6UJoA\r\n5gJB2U6k05Tz37/zmHNzUilVbJHF0vh/l7bZqznI0N5Cx4pGQdylvmYll2WI\r\nm+tHner8nPuuQHe/dUwh8jN2luNDHs7NjUHGUsfI8z5Nz7sXptgO/ci4r5N2\r\niVcG6dVtHFbzAfjMEGKMJvVaR86csm9L4GI79UGmV3nWjbrom4hXYiVUEs6V\r\ne1yOYsj4BhodSTyOWQPnZe44EPufbXeoIfKbmkYyKB0i9KAYsdtKUzeJ01R9\r\nQG8WdfMaKy+EydrHhpW1n78oM5cMRBG2sWxrxuBSqSxMLxEfIsCsc9SDEpQ8\r\n4J5dLNtDzAaDwQX67/s29OcaCmv6VA1Ye2ZIWfbQXfUxDJEwF116B84FfWpn\r\nNsFtdhEoAIPvQo0x6Yz0lc4t/KKkjv2gStKRfrkmdbPmYVhBUhJbZl81V8Hd\r\nQKz/r9/qUNuM75sk5EGYDNwitLOfMBhKZYfb+DesMrcRwb6eN0zE5X+ZHHmU\r\nfMkjmwxkKCVHH5j1DM0GgpORiphthPElF+DuJxislaQCsMmg/FxwDpH9RoQC\r\nplbqD3Q8xHcIKU1zTcZUGfFl52Rw709hDyNOzpvZy2i4N46szIi0SJ2u1yv0\r\nnQk/eQ5skI8479JeAvNfDtIqXdOIJhs10IA=\r\n=6zay\r\n-----END PGP SIGNATURE-----\r\n","size":1917,"noattachment":false,"key":"/@putout/plugin-convert-index-of-to-includes/-/@putout/plugin-convert-index-of-to-includes-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","tmp":"tmp/plugin-convert-index-of-to-includes_2.0.0_1680089853504_0.4069104833588064"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-convert-index-of-to-includes [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-index-of-to-includes.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-index-of-to-includes \"npm\"\n\n> The `includes()` method determines whether an array includes a certain value among its entries, returning `true` or `false` as appropriate.\n>\n> (c)[MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert `indexOf` to `includes`.\n\n## Install\n\n```\nnpm i @putout/plugin-convert-index-of-to-includes -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"convert-index-of-to-includes\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nif (~array.indexOf(element)) {\n}\n```\n\n## ✅ Example of correct code\n\n```js\nif (array.includes(element)) {\n}\n```\n\n## License\n\nMIT\n","publish_time":1680089853817,"_cnpm_publish_time":1680089853817,"dist-tags":{"latest":"3.0.0"}}