{"name":"@putout/plugin-merge-destructuring-properties","version":"12.3.0","keywords":["putout","putout-plugin","plugin","destructuring"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-merge-destructuring-properties@12.3.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-merge-destructuring-properties#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"70519c96c3cd6b6f187b489e2c39670b2360b67c","tarball":"http://registry-npm.ywwl.com/@putout/plugin-merge-destructuring-properties/download/@putout/plugin-merge-destructuring-properties-12.3.0.tgz","fileCount":4,"integrity":"sha512-2T9wooLmECtSuddaONZ/GzKT0/+1MecvAyCGNgfb+HAt7yzIxnydLXS3DutQx775nKa16rjUuzbnN6ULld45Kg==","signatures":[{"sig":"MEYCIQCg8MpyguO1ueh+q/VpLjbON3Mn3RE9PfBGodV4h5yoQQIhAP74CHGl5D7LXu76JzdoONqPejLeUQVGyY3GbUB7oz5R","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7758,"size":3036,"noattachment":false,"key":"/@putout/plugin-merge-destructuring-properties/-/@putout/plugin-merge-destructuring-properties-12.3.0.tgz"},"main":"lib/merge-destructuring-properties.js","type":"module","engines":{"node":">=20"},"gitHead":"050ab89981cbe8082ff31c27f449183107892c25","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","actor":{"name":"coderaiser","type":"user","email":"mnemonic.enemy@gmail.com"},"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 merge destructuring properties","directories":{},"_nodeVersion":"24.2.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","nodejs":"*","nodemon":"^3.0.1","@putout/test":"^13.0.0","eslint-plugin-n":"^17.0.0","@putout/plugin-esm":"*","@putout/eslint-flat":"^3.0.0","@putout/plugin-tape":"*","eslint-plugin-putout":"^27.0.0","@putout/plugin-minify":"*","@putout/plugin-nodejs":"*","@putout/plugin-putout":"*","@putout/plugin-declare":"*","@putout/plugin-printer":"*","@putout/plugin-declare-before-reference":"*","@putout/plugin-convert-mock-require-to-mock-import":"*"},"peerDependencies":{"putout":">=40"},"_npmOperationalInternal":{"tmp":"tmp/plugin-merge-destructuring-properties_12.3.0_1750785751712_0.6996342363267742","host":"s3://npm-registry-packages-npm-production"},"readme":"# @putout/plugin-merge-destructuring-properties [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-merge-destructuring-properties.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-merge-destructuring-properties\"npm\"\n\n> The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from `arrays`, or `properties` from `objects`, into distinct `variables`.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to merge destructuring properties. Merged with [`@putout/plugin-destructuring`](https://www.npmjs.com/package/@putout/plugin-destructuring).\n\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/11c8cfa59f87e46238309b857448b9c5/688f10ad8fd7c0e4d9e9e0c74c399f1edb3ba29e).\n\n## Install\n\n```\nnpm i @putout/plugin-merge-destructuring-properties\n```\n\n## Rule\n\nRule `merge-destructuring-properties` is enabled by default, to disable add to `.putout.json`:\n\n```json\n{\n    \"rules\": {\n        \"merge-destructuring-properties\": \"off\"\n    }\n}\n```\n\n### ❌ Example of incorrect code\n\n```js\nconst {one} = require('numbers');\nconst {two} = require('numbers');\n```\n\n### ✅ Example of correct code\n\n```js\nconst {one, two} = require('numbers');\n```\n\n#### Assignment\n\n### ❌ Example of incorrect code\n\n```js\n({from} = data);\n({to} = data);\n({names} = data);\n```\n\n### ✅ Example of correct code\n\n```js\n({\n    from,\n    to,\n    names,\n} = data);\n```\n\n## License\n\nMIT\n","publish_time":1750785751900,"_cnpm_publish_time":1750785751900,"dist-tags":{"latest":"12.3.1"}}