{"name":"@putout/plugin-split-nested-destructuring","version":"4.1.1","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.1","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/v40.15.1//packages/plugin-split-nested-destructuring#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"4a4fa7fc315952e34ce8568ca019d0417a359e9e","tarball":"http://registry-npm.ywwl.com/@putout/plugin-split-nested-destructuring/download/@putout/plugin-split-nested-destructuring-4.1.1.tgz","fileCount":4,"integrity":"sha512-Vg8bHjAuRrT4x2YAG5y4x8ZJJTEShX4fSTJIhgvmS1A5IrPxZw/NHgL9vV1q+ZEUyv1vhkZTuzmIrxZvt8Bpog==","signatures":[{"sig":"MEYCIQDXzpM2b5FONM+PcFHiHjZDrdSS+gDzMO7pIrJyPEUTpgIhAJyi1NIu7XPTFHtrWvaTIGU1zmCy1lPEXUwJfLgv0K9e","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5237,"size":2346,"noattachment":false,"key":"/@putout/plugin-split-nested-destructuring/-/@putout/plugin-split-nested-destructuring-4.1.1.tgz"},"main":"./lib/split-nested-destructuring.js","type":"module","engines":{"node":">=20"},"exports":"./lib/split-nested-destructuring.js","gitHead":"2f6133764c3b7cb020b72a63166efece1f584727","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":"25.2.1","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.1_1764407054141_0.7306673688830061","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":1764407054367,"_cnpm_publish_time":1764407054367,"dist-tags":{"latest":"4.1.2"}}