{"name":"@putout/plugin-remove-useless-object-from-entries","version":"1.0.1","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless 'Object.fromEntries()'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-object-from-entries#readme","main":"lib/remove-useless-object-from-entries.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","object-from-entries","useless"],"devDependencies":{"@putout/test":"^15.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^30.0.0","madrun":"^12.0.0"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-remove-useless-object-from-entries@1.0.1","gitHead":"59d1efae09856fef234b20147163d2b2842bff19","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.6.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-uM1rYXhYTe+1KzJjnkH8jltyePf0ErcoJ0xEL7KJAz92e5yGjLltVXRbFA4ZjXN0z2MMfb8+viIVRqXB5qnjUg==","shasum":"52df6e8df83704d36551935114dbb961e7c97cf0","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-useless-object-from-entries/download/@putout/plugin-remove-useless-object-from-entries-1.0.1.tgz","fileCount":4,"unpackedSize":3890,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDFZo0mHLBQkHr3v8/0KGPT5UB4hZutAnyjBknsejS1/gIhAJDo8HmRRuXisyio8/SFypD4hg5AYB6mV9V+FcSMKGw2"}],"size":1872,"noattachment":false,"key":"/@putout/plugin-remove-useless-object-from-entries/-/@putout/plugin-remove-useless-object-from-entries-1.0.1.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-object-from-entries_1.0.1_1770242853424_0.3714056361510909"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-remove-useless-object-from-entries [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-object-from-entries.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-object-from-entries \"npm\"\n\n> The `Object.fromEntries()` static method transforms a list of key-value pairs into an object.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to remove useless [`Object.fromEntries()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries).\n\n## Install\n\n```\nnpm i @putout/plugin-remove-useless-object-from-entries\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-useless-object-from-entries\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst a = {\n    b: Object.fromEntries(Object.entries({\n        hello: 'world',\n    })),\n};\n```\n\n## ✅ Example of correct code\n\n```js\nconst a = {\n    b: {\n        hello: 'world',\n    },\n};\n```\n\n## License\n\nMIT\n","publish_time":1770242853665,"_cnpm_publish_time":1770242853665,"dist-tags":{"latest":"1.0.1"}}