{"name":"@putout/plugin-split-nested-destructuring","version":"4.1.0","keywords":["putout","putout-plugin","plugin","debugger"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-split-nested-destructuring@4.1.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-split-nested-destructuring#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"5c2934aacab9b932df4f26fe7f514d3b88fd7e4d","tarball":"http://registry-npm.ywwl.com/@putout/plugin-split-nested-destructuring/download/@putout/plugin-split-nested-destructuring-4.1.0.tgz","fileCount":4,"integrity":"sha512-i6D7v9lrAn/hBs5ErMM23/dusbRHrUcxWf0g16xLsOZMIdwnNCRoTeM9lLYGbTa46uhoUx/XsL3ETgIhGi7MxQ==","signatures":[{"sig":"MEUCIQDw6+4sodqp63Mfi25OCvWXuqLiXnTmt+h6Oq4YPE8oeQIgF7OP4WGRSyclOuucDOf8ARvRg9MS+3/5LSU4DaERZsg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5127,"size":2308,"noattachment":false,"key":"/@putout/plugin-split-nested-destructuring/-/@putout/plugin-split-nested-destructuring-4.1.0.tgz"},"main":"./lib/split-nested-destructuring.js","type":"module","engines":{"node":">=20"},"exports":"./lib/split-nested-destructuring.js","gitHead":"8c252e082b69cd62d04240ffe894fa0681dcdba8","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"},"_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 split nested destructuring","directories":{},"_nodeVersion":"22.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","nodemon":"^3.0.1","@putout/test":"^14.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0","eslint-plugin-putout":"^28.0.0"},"peerDependencies":{"putout":">=40"},"_npmOperationalInternal":{"tmp":"tmp/plugin-split-nested-destructuring_4.1.0_1761921612621_0.9499999612985011","host":"s3://npm-registry-packages-npm-production"},"readme":"# @putout/plugin-split-nested-destructuring [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-split-nested-destructuring.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-split-nested-destructuring \"npm\"\n\n> - Don't use nested destructuring on data that comes from any external data sources (such as `REST API`s, `GraphQL` endpoints or files).\n> - Don't use nested destructuring on function arguments that have long or complicated signatures.\n>\n> (c) [Destructuring in JavaScript: the not so good parts](https://goodguydaniel.com/blog/destructuring-not-so-good-parts)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to split nested destructuring. Merged with [`@putout/plugin-destructuring`](https://www.npmjs.com/package/@putout/plugin-destructuring).\n\n\n## Install\n\n```\nnpm i @putout/plugin-split-nested-destructuring -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"split-nested-destructuring\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst {\n    a: {\n        b,\n    },\n    a: {\n        b: x,\n    },\n} = c;\n\nfunction f({a: {b}}) {\n    console.log(b);\n}\n```\n\n## ✅ Example of correct code\n\n```js\nconst {a} = c;\nconst {b, b: x} = a;\n\nfunction f({a}) {\n    const {b} = a;\n    console.log(b);\n}\n```\n\n## License\n\nMIT\n","publish_time":1761921612809,"_cnpm_publish_time":1761921612809,"dist-tags":{"latest":"4.1.2"}}