{"name":"@putout/plugin-convert-object-entries-to-object-keys","version":"1.0.2","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert 'Object.entries()' to 'Object.keys()'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-object-entries-to-object-keys#readme","main":"lib/convert-object-entries-to-object-keys.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://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","const","let","var","VariableDeclaration"],"devDependencies":{"@putout/test":"^14.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^28.0.0","madrun":"^11.0.0"},"peerDependencies":{"putout":">=40"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-convert-object-entries-to-object-keys@1.0.2","gitHead":"7d2324a314714c4a9fcee3f015b8ef70fb2b386a","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"24.6.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-WNKS5k0Hlb1VCyr3L5m9/Ff1DvSlgfCnoboU+TRB1v3QIhxmTEx8aGmkb2xy5VkWuWfBzEB0G/v/Kll6hFQluw==","shasum":"e4a5cc086265b336e26104051f9d1be966fbd4f8","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-object-entries-to-object-keys/download/@putout/plugin-convert-object-entries-to-object-keys-1.0.2.tgz","fileCount":4,"unpackedSize":4479,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFmh3B306c/4ZNeO/orpVxnhWjDQxFsMKxqbHf2IEpcVAiEAt//DJJRnEpUu6vvDC/biKY2S75i+qP/xxRRisrR8Cwk="}],"size":2049,"noattachment":false,"key":"/@putout/plugin-convert-object-entries-to-object-keys/-/@putout/plugin-convert-object-entries-to-object-keys-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-npm-production","tmp":"tmp/plugin-convert-object-entries-to-object-keys_1.0.2_1756463979142_0.07564290512922422"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-convert-object-entries-to-object-keys [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-object-entries-to-object-keys.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-object-entreis-to-object-keys \"npm\"\n\n> The `Object.keys()` static method returns an array of a given object's own enumerable string-keyed property key-value pairs.\n>\n> (c) [`Object.keys()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys)\n\n> The `Object.entries()` static method returns an array of a given object's own enumerable string-keyed property key-value pairs.\n>\n> (c) [`Object.entries()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert `Object.entries()` to `Object.keys()`\n\n## Install\n\n```\nnpm i @putout/plugin-convert-object-entries-to-object-keys -D\n```\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/82cf60991515c274d0ba08f2ca36e9e6/a56a4bddfb45007434f2d24e9573a3d7646ea11d).\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"convert-object-entries-to-object-keys\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nfor (const [name] of Object.entries(tokens)) {\n    console.log(name);\n}\n\nfor (const [name] of entries(tokens)) {\n    console.log(name);\n}\n```\n\n## ✅ Example of correct code\n\n```js\nfor (const name of Object.keys(tokens)) {\n    console.log(name);\n}\n\nfor (const name of keys(tokens)) {\n    console.log(name);\n}\n```\n\n## License\n\nMIT\n","publish_time":1756463979311,"_cnpm_publish_time":1756463979311,"dist-tags":{"latest":"1.0.2"}}