{"name":"@putout/plugin-split-nested-destructuring","version":"4.1.2","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to split nested destructuring","homepage":"https://github.com/coderaiser/putout/tree/v40.15.1/packages/plugin-split-nested-destructuring#readme","main":"./lib/split-nested-destructuring.js","exports":"./lib/split-nested-destructuring.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"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","debugger"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^14.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^28.0.0","madrun":"^11.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=40"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-split-nested-destructuring@4.1.2","gitHead":"2f6133764c3b7cb020b72a63166efece1f584727","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-c11TnWN72kIhUYeIxAI74ion6cYrAT3Ru9IOxIJxsMB+Ma3Hx0trqVe5Qz19rWP+UpHTGKDSZCu/hatnkhrlxg==","shasum":"4e66f248d73e8c73d84467ab3543590199d8c0fd","tarball":"http://registry-npm.ywwl.com/@putout/plugin-split-nested-destructuring/download/@putout/plugin-split-nested-destructuring-4.1.2.tgz","fileCount":4,"unpackedSize":5236,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFPaDFdTh0ED8Atj4G0v8zzpg/9r5MuliZFsmMLQMkPxAiA0NjL8CzlFXWZgqL4hOCt083gXqVhfkBzeyWxOOlA5uQ=="}],"size":2346,"noattachment":false,"key":"/@putout/plugin-split-nested-destructuring/-/@putout/plugin-split-nested-destructuring-4.1.2.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-split-nested-destructuring_4.1.2_1764407100961_0.7845222312443239"},"_hasShrinkwrap":false,"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":1764407101152,"_cnpm_publish_time":1764407101152,"dist-tags":{"latest":"4.1.2"}}