{"name":"@putout/plugin-split-nested-destructuring","version":"4.0.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.0.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":"d5dc80f6e66ccce9b87f23799683a21d4f4e23f2","tarball":"http://registry-npm.ywwl.com/@putout/plugin-split-nested-destructuring/download/@putout/plugin-split-nested-destructuring-4.0.0.tgz","fileCount":4,"integrity":"sha512-DPdDJFivf9o/nKJxVioPDMyXWks0IZevmBnnGL1PNZtZY58UubCcBdDKVkkUq82RABxaFab1ZjAn0A3Blc9VwQ==","signatures":[{"sig":"MEYCIQCHBpYx9imcQHOV4/a/7FTtG96EuDRlZ3wvs4fGBOL6fwIhAJ+KWn44jio/LRs4ZAH4pNCqFH4vLMk/at8ViJFynpTK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5077,"size":2304,"noattachment":false,"key":"/@putout/plugin-split-nested-destructuring/-/@putout/plugin-split-nested-destructuring-4.0.0.tgz"},"main":"./lib/split-nested-destructuring.js","type":"module","engines":{"node":">=20"},"exports":"./lib/split-nested-destructuring.js","gitHead":"930e4b1d476a162ed4464b4d4b432c4d0f31fc69","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.1.0","description":"🐊Putout plugin adds ability to split nested destructuring","directories":{},"_nodeVersion":"23.11.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":"^13.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0","eslint-plugin-putout":"^26.0.0"},"peerDependencies":{"putout":">=40"},"_npmOperationalInternal":{"tmp":"tmp/plugin-split-nested-destructuring_4.0.0_1746117360501_0.966780467557443","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":1746117360738,"_cnpm_publish_time":1746117360738,"dist-tags":{"latest":"4.1.2"}}