{"name":"@putout/plugin-convert-for-each-to-for-of","version":"2.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to convert forEach to for-of","homepage":"http://github.com/coderaiser/putout","main":"lib/convert-for-each-to-for-of.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","remove","only"],"devDependencies":{"@putout/eslint-config":"^1.0.2","@putout/test":"^1.13.0","coveralls":"^3.0.0","eslint":"^6.2.0","eslint-plugin-node":"^10.0.0","eslint-plugin-putout":"^2.0.0","madrun":"^3.0.0","nyc":"^14.0.0","supertape":"^1.0.3"},"peerDependencies":{"putout":">=5.25"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-for-each-to-for-of@2.0.0","_nodeVersion":"12.10.0","_npmVersion":"6.10.0","dist":{"integrity":"sha512-mtfyTICCR/YUY+BlJAs1hLOzCF81163RtpdPsDJJrHFYwwnCyyQL2EqP18e1lJJg719SR9UIo5SUaOv8i16QBQ==","shasum":"bba1b8614f8977f4c3132c461a29ecce384dda16","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-for-each-to-for-of/download/@putout/plugin-convert-for-each-to-for-of-2.0.0.tgz","fileCount":4,"unpackedSize":6733,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdeOBhCRA9TVsSAnZWagAA3YIP/jdQZz2hmtppVy3Ssv0q\nAM8rN1dlTv34KH5YYhXV9bOufBc6NBNnAuXW1qSjOAbVYq6G/Dec+cRYvkIc\nTIplXTPiSdN+E7pjy9kfcyTtYWTnp++msNQRo7L8TDOhwnIZk4r3qN/TiW0Q\nDa1WfHvRYLUnQAozMdXsXgppc4SRRvwTBqvauvQ76V1oBPh5iAA2ZvAIw7Bl\nKy0mU/0GwBRzSgtye6W2x2jNIOMEFwOhnve2yLT4onvFIWOziZmjMO0rDCpp\nMvhzvIaciEXP1DUkfACBQfzKNPfnUqW2LNizl9GkPEn0tiPrpHo5v1anYbUg\n87S0C6yVCi6Z4HXJtDb1X80fwpJ2Rg3BOXORXY8VxvhQ78+3KfRa/tYIhemx\n//OHG+W+dZo9+KAiIhPKjgQa8a63qaH4p8HW8aa4K1G/goxLu96NUKo7MhwU\n2mz3QXrglfhXB8mCcyjLEJeMW//uXclNoVJbfIyChTQBdggUugYIOqtA1Ddh\nJ2Bpm+RsnwfCu1Z4BIwycGbE+wx4G5xaoU0viawpzkSTCv7z1JWyWm6BRsVa\nOOsKahNBDOCGmbaa+FFXnJ/kWbk+uBQJaawOpMVKV0/v9c5HNVo3bFiBwjBS\ngYMwM6cUacVsbQh+HlNSHYbpQ6VvWr5NuIPQ8DSmwfRnSVZ73hVeT6rI2mMz\nkvE6\r\n=ExoC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFTibLTsol9FEycVqHA53ppts6HPet4gZTTh0vxlQGHdAiABbedWzJiYyNTeGy1PPxsknyoivp0yiTM8CgzxJANlog=="}],"size":2732,"noattachment":false,"key":"/@putout/plugin-convert-for-each-to-for-of/-/@putout/plugin-convert-for-each-to-for-of-2.0.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-for-each-to-for-of_2.0.0_1568202849111_0.2663207017400835"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-convert-for-each-to-for-of [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-for-each-to-for-of.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-for-each-to-for-of \"npm\"\n\n> The [`forEach()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach) method executes a provided function once for each array element.\n>\n> The [`for...of`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of) statement creates a loop which invokes a custom iteration hook with statements to be executed for the value of each element of an array.\n>\n> (c) MDN\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert `forEach()` to `for...of`.\nComplements [`@putout/plugin-convert-const-to-let`](https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-const-to-let#readme). Merged to [`@putout/plugin-for-of`](https://www.npmjs.com/package/@putout/plugin-for-of).\n\n## Install\n\n```\nnpm i @putout/plugin-convert-for-each-to-for-of -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"convert-for-each-to-for-of\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nObject.keys(json).forEach((name) => {\n    manage(name, json[name]);\n});\n\n[].forEach.call(arguments, (item) => {\n    console.log(item);\n});\n```\n\n## ✅ Example of correct code\n\n```js\nfor (const name of Object.keys(json)) {\n    manage(name, json[name]);\n}\n\nfor (const name of arguments) {\n    console.log(item);\n}\n```\n\n## License\n\nMIT\n","publish_time":1568202849252,"_cnpm_publish_time":1568202849252,"dist-tags":{"latest":"8.1.1"}}