{"_id":"@putout/plugin-remove-useless-object-from-entries","_rev":"4160238","name":"@putout/plugin-remove-useless-object-from-entries","description":"🐊Putout plugin adds ability to remove useless 'Object.fromEntries()'","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:37:55.000Z","created":"2026-02-04T22:02:14.921Z","1.0.1":"2026-02-04T22:07:33.665Z","1.0.0":"2026-02-04T22:02:14.921Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"versions":{"1.0.1":{"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":{"shasum":"52df6e8df83704d36551935114dbb961e7c97cf0","size":1872,"noattachment":false,"key":"/@putout/plugin-remove-useless-object-from-entries/-/@putout/plugin-remove-useless-object-from-entries-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-remove-useless-object-from-entries/download/@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,"_cnpmcore_publish_time":"2026-02-04T22:07:33.665Z","publish_time":1770242853665,"_source_registry_name":"default","_cnpm_publish_time":1770242853665},"1.0.0":{"name":"@putout/plugin-remove-useless-object-from-entries","version":"1.0.0","keywords":["putout","putout-plugin","plugin","object-from-entries","useless"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-useless-object-from-entries@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-object-from-entries#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"2559aa79d63c5c9903fc81d4cfa92604e018ff42","size":1869,"noattachment":false,"key":"/@putout/plugin-remove-useless-object-from-entries/-/@putout/plugin-remove-useless-object-from-entries-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-remove-useless-object-from-entries/download/@putout/plugin-remove-useless-object-from-entries-1.0.0.tgz"},"main":"lib/remove-useless-object-from-entries.js","type":"module","engines":{"node":">=20"},"gitHead":"6e5b9a0b285609f9110680b32265e94745c30668","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.4.2","description":"🐊Putout plugin adds ability to remove useless 'Object.fromEntries()'","directories":{},"_nodeVersion":"25.6.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^10.0.0-alpha.0","madrun":"^12.0.0","@putout/test":"^15.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^30.0.0"},"peerDependencies":{"putout":">=40"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-useless-object-from-entries_1.0.0_1770242534747_0.6870677732124029","host":"s3://npm-registry-packages-npm-production"},"_cnpmcore_publish_time":"2026-02-04T22:02:14.921Z","publish_time":1770242534921,"_source_registry_name":"default","_cnpm_publish_time":1770242534921}},"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","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-object-from-entries#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}