{"_id":"@putout/plugin-destructuring","_rev":"4160205","name":"@putout/plugin-destructuring","description":"🐊Putout plugin adds ability to transform destructuring","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:37:48.000Z","created":"2025-11-28T22:49:09.712Z","2.0.0":"2026-02-23T14:24:12.553Z","1.4.2":"2025-12-30T22:04:10.238Z","1.4.1":"2025-12-27T10:38:33.565Z","1.4.0":"2025-12-27T09:39:15.106Z","1.3.0":"2025-12-04T12:01:02.032Z","1.2.0":"2025-12-01T15:23:02.776Z","1.1.0":"2025-11-30T11:24:08.842Z","1.0.2":"2025-11-29T09:18:40.256Z","1.0.1":"2025-11-28T22:53:59.022Z","1.0.0":"2025-11-28T22:49:09.712Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"versions":{"2.0.0":{"name":"@putout/plugin-destructuring","version":"2.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to transform destructuring","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-destructuring#readme","main":"lib/index.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","destructuring"],"devDependencies":{"@putout/eslint-flat":"^4.0.0","@putout/plugin-declare":"*","@putout/plugin-declare-before-reference":"*","@putout/plugin-esm":"*","@putout/plugin-minify":"*","@putout/plugin-nodejs":"*","@putout/plugin-printer":"*","@putout/plugin-putout":"*","@putout/plugin-tape":"*","@putout/plugin-variables":"*","@putout/test":"^15.0.0","c8":"^10.0.0","eslint":"^10.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^31.0.0","madrun":"^13.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=42"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-destructuring@2.0.0","gitHead":"665dc2c6f69e23c1892966c5deb96820e40b5651","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.6.1","_npmVersion":"11.4.2","dist":{"shasum":"0a8a8887ebadcffbb5b2d10d1b414ed3f0c00f0c","size":7304,"noattachment":false,"key":"/@putout/plugin-destructuring/-/@putout/plugin-destructuring-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-destructuring/download/@putout/plugin-destructuring-2.0.0.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-destructuring_2.0.0_1771856652386_0.19324655459985496"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-23T14:24:12.553Z","publish_time":1771856652553,"_source_registry_name":"default","_cnpm_publish_time":1771856652553},"1.4.2":{"name":"@putout/plugin-destructuring","version":"1.4.2","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to transform destructuring","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-destructuring#readme","main":"lib/index.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","destructuring"],"devDependencies":{"@putout/plugin-declare":"*","@putout/plugin-declare-before-reference":"*","@putout/plugin-esm":"*","@putout/plugin-minify":"*","@putout/plugin-nodejs":"*","@putout/plugin-printer":"*","@putout/plugin-putout":"*","@putout/plugin-tape":"*","@putout/plugin-variables":"*","@putout/test":"^14.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","madrun":"^11.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-destructuring@1.4.2","gitHead":"856948df117bcc6d1baeb1cd1374db69afd013e9","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"3a0faa87ed3242bc807aa0dd9d41495254693c65","size":7249,"noattachment":false,"key":"/@putout/plugin-destructuring/-/@putout/plugin-destructuring-1.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-destructuring/download/@putout/plugin-destructuring-1.4.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-destructuring_1.4.2_1767132250089_0.11912392177266917"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-30T22:04:10.238Z","publish_time":1767132250238,"_source_registry_name":"default","_cnpm_publish_time":1767132250238},"1.4.1":{"name":"@putout/plugin-destructuring","version":"1.4.1","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to transform destructuring","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-destructuring#readme","main":"lib/index.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":{"redput":"^3.6.0"},"keywords":["putout","putout-plugin","plugin","destructuring"],"devDependencies":{"@putout/plugin-declare":"*","@putout/plugin-declare-before-reference":"*","@putout/plugin-esm":"*","@putout/plugin-minify":"*","@putout/plugin-nodejs":"*","@putout/plugin-printer":"*","@putout/plugin-putout":"*","@putout/plugin-tape":"*","@putout/plugin-variables":"*","@putout/test":"^14.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","madrun":"^11.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-destructuring@1.4.1","gitHead":"2ce836ee0995fc1facd65ff0d4d4ed1d8276e263","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"bb0a5004f019b2e60a7215ee0e64d7b5d2b42a7b","size":7256,"noattachment":false,"key":"/@putout/plugin-destructuring/-/@putout/plugin-destructuring-1.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-destructuring/download/@putout/plugin-destructuring-1.4.1.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-destructuring_1.4.1_1766831913415_0.9219260250809955"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-27T10:38:33.565Z","publish_time":1766831913565,"_source_registry_name":"default","_cnpm_publish_time":1766831913565},"1.4.0":{"name":"@putout/plugin-destructuring","version":"1.4.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to transform destructuring","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-destructuring#readme","main":"lib/index.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":{"redput":"^3.6.0"},"keywords":["putout","putout-plugin","plugin","destructuring"],"devDependencies":{"@putout/plugin-declare":"*","@putout/plugin-declare-before-reference":"*","@putout/plugin-esm":"*","@putout/plugin-minify":"*","@putout/plugin-nodejs":"*","@putout/plugin-printer":"*","@putout/plugin-putout":"*","@putout/plugin-tape":"*","@putout/plugin-variables":"*","@putout/test":"^14.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","madrun":"^11.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-destructuring@1.4.0","gitHead":"3eb3f46d59b2708f65be23fbb25d92fdeffb3c7c","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"24.12.0","_npmVersion":"11.2.0","dist":{"shasum":"adba90a4b6ca2d7b8fa41c62f11c59db237f4f10","size":7601,"noattachment":false,"key":"/@putout/plugin-destructuring/-/@putout/plugin-destructuring-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-destructuring/download/@putout/plugin-destructuring-1.4.0.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-destructuring_1.4.0_1766828354927_0.7606226976962627"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-27T09:39:15.106Z","publish_time":1766828355106,"_source_registry_name":"default","_cnpm_publish_time":1766828355106},"1.3.0":{"name":"@putout/plugin-destructuring","version":"1.3.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to transform destructuring","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-destructuring#readme","main":"lib/index.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","destructuring"],"devDependencies":{"@putout/plugin-declare":"*","@putout/plugin-declare-before-reference":"*","@putout/plugin-esm":"*","@putout/plugin-minify":"*","@putout/plugin-nodejs":"*","@putout/plugin-printer":"*","@putout/plugin-putout":"*","@putout/plugin-tape":"*","@putout/plugin-variables":"*","@putout/test":"^14.0.0","c8":"^10.0.0","eslint":"v10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","madrun":"^11.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-destructuring@1.3.0","gitHead":"eedb79924f4159345328826f7457c5b00be66335","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"4a1ff2e18f86434b8a79bd201fb3252f752930d4","size":7261,"noattachment":false,"key":"/@putout/plugin-destructuring/-/@putout/plugin-destructuring-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-destructuring/download/@putout/plugin-destructuring-1.3.0.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-destructuring_1.3.0_1764849661878_0.20907528630886207"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-04T12:01:02.032Z","publish_time":1764849662032,"_source_registry_name":"default","_cnpm_publish_time":1764849662032},"1.2.0":{"name":"@putout/plugin-destructuring","version":"1.2.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to transform destructuring","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-destructuring#readme","main":"lib/index.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","destructuring"],"devDependencies":{"@putout/plugin-declare":"*","@putout/plugin-declare-before-reference":"*","@putout/plugin-esm":"*","@putout/plugin-minify":"*","@putout/plugin-nodejs":"*","@putout/plugin-printer":"*","@putout/plugin-putout":"*","@putout/plugin-tape":"*","@putout/test":"^14.0.0","c8":"^10.0.0","eslint":"v10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","madrun":"^11.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-destructuring@1.2.0","gitHead":"4483a86f41e8ae1d37ffc41d7307dbe90e46db09","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"e0eeec2358247de33fccce3f4f878223bc62381e","size":6228,"noattachment":false,"key":"/@putout/plugin-destructuring/-/@putout/plugin-destructuring-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-destructuring/download/@putout/plugin-destructuring-1.2.0.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-destructuring_1.2.0_1764602582586_0.5298428687464627"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-01T15:23:02.776Z","publish_time":1764602582776,"_source_registry_name":"default","_cnpm_publish_time":1764602582776},"1.1.0":{"name":"@putout/plugin-destructuring","version":"1.1.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to transform destructuring","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-destructuring#readme","main":"lib/index.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","destructuring"],"devDependencies":{"@putout/plugin-declare":"*","@putout/plugin-declare-before-reference":"*","@putout/plugin-esm":"*","@putout/plugin-minify":"*","@putout/plugin-nodejs":"*","@putout/plugin-printer":"*","@putout/plugin-putout":"*","@putout/plugin-tape":"*","@putout/test":"^14.0.0","c8":"^10.0.0","eslint":"v10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","madrun":"^11.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-destructuring@1.1.0","gitHead":"81d14eca64f6ec300a4c95ee4be84c18edbf5714","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"3fa1af64fe601bce97893bc2bdd2d710c016d1f7","size":5805,"noattachment":false,"key":"/@putout/plugin-destructuring/-/@putout/plugin-destructuring-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-destructuring/download/@putout/plugin-destructuring-1.1.0.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-destructuring_1.1.0_1764501848613_0.22280593662763404"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-30T11:24:08.842Z","publish_time":1764501848842,"_source_registry_name":"default","_cnpm_publish_time":1764501848842},"1.0.2":{"name":"@putout/plugin-destructuring","version":"1.0.2","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to transform destructuring","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-destructuring#readme","main":"lib/index.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","destructuring"],"devDependencies":{"@putout/plugin-declare":"*","@putout/plugin-declare-before-reference":"*","@putout/plugin-esm":"*","@putout/plugin-minify":"*","@putout/plugin-nodejs":"*","@putout/plugin-printer":"*","@putout/plugin-putout":"*","@putout/plugin-tape":"*","@putout/test":"^14.0.0","c8":"^10.0.0","eslint":"v10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","madrun":"^11.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-destructuring@1.0.2","gitHead":"7b70cb3836b519276a64f783afcc03b899abc082","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"312ffea1b48f1a5b072c511dca0ff4606f6494d4","size":5114,"noattachment":false,"key":"/@putout/plugin-destructuring/-/@putout/plugin-destructuring-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-destructuring/download/@putout/plugin-destructuring-1.0.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-destructuring_1.0.2_1764407920072_0.6606891949801263"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-29T09:18:40.256Z","publish_time":1764407920256,"_source_registry_name":"default","_cnpm_publish_time":1764407920256},"1.0.1":{"name":"@putout/plugin-destructuring","version":"1.0.1","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to transform destructuring","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-destructuring#readme","main":"lib/index.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","destructuring"],"devDependencies":{"@putout/plugin-declare":"*","@putout/plugin-declare-before-reference":"*","@putout/plugin-esm":"*","@putout/plugin-minify":"*","@putout/plugin-nodejs":"*","@putout/plugin-printer":"*","@putout/plugin-putout":"*","@putout/plugin-tape":"*","@putout/test":"^14.0.0","c8":"^10.0.0","eslint":"v10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","madrun":"^11.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-destructuring@1.0.1","gitHead":"a1ade5865cec98323382e5e1a14d942967d23693","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"dbf6e34098ed67fda6fffb305b7585c40f2adacd","size":5060,"noattachment":false,"key":"/@putout/plugin-destructuring/-/@putout/plugin-destructuring-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-destructuring/download/@putout/plugin-destructuring-1.0.1.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-destructuring_1.0.1_1764370438833_0.6737332798316455"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-28T22:53:59.022Z","publish_time":1764370439022,"_source_registry_name":"default","_cnpm_publish_time":1764370439022},"1.0.0":{"name":"@putout/plugin-destructuring","version":"1.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to transform destructuring","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-destructuring#readme","main":"lib/index.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","destructuring"],"devDependencies":{"@putout/plugin-declare":"*","@putout/plugin-declare-before-reference":"*","@putout/plugin-esm":"*","@putout/plugin-minify":"*","@putout/plugin-nodejs":"*","@putout/plugin-printer":"*","@putout/plugin-putout":"*","@putout/plugin-tape":"*","@putout/test":"^14.0.0","c8":"^10.0.0","eslint":"v10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","madrun":"^11.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-destructuring@1.0.0","gitHead":"b15ad7a422f3161b91e2b0f32fc672b3063098ab","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"f87c7fd67ea83419128b936602622db227c7616d","size":5091,"noattachment":false,"key":"/@putout/plugin-destructuring/-/@putout/plugin-destructuring-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-destructuring/download/@putout/plugin-destructuring-1.0.0.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-destructuring_1.0.0_1764370149530_0.2663779668555697"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-28T22:49:09.712Z","publish_time":1764370149712,"_source_registry_name":"default","_cnpm_publish_time":1764370149712}},"readme":"# @putout/plugin-destructuring [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-destructuring.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-destructuring \"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 use **destructuring** on variable declarations.\n\n## Install\n\n```\nnpm i @putout/plugin-destructuring\n```\n\n## Rules\n\n- ✅ [apply-array](#apply-array);\n- ✅ [apply-object](#apply-object);\n- ✅ [convert-object-to-array](#convert-object-to-array);\n- ✅ [extract-properties](#extract-properties);\n- ✅ [remove-useless-object](#remove-useless-object);\n- ✅ [remove-useless-arguments](#remove-useless-arguments);\n- ✅ [remove-useless-variables](#remove-useless-variables);\n- ✅ [split-nested](#split-nested);\n- ✅ [split-call](#split-call);\n- ✅ [merge-properties](#merge-properties);\n\n## Config\n\n```json\n{\n    \"rules\": {\n        \"destructuring/apply-array\": \"on\",\n        \"destructuring/apply-object\": \"on\",\n        \"destructuring/convert-object-to-array\": \"on\",\n        \"destructuring/extract-properties\": \"on\",\n        \"destructuring/remove-useless-object\": \"on\",\n        \"destructuring/remove-useless-arguments\": \"on\",\n        \"destructuring/remove-useless-variables\": \"on\",\n        \"destructuring/split-nested\": \"on\",\n        \"destructuring/split-call\": \"on\",\n        \"destructuring/merge-properties\": \"on\"\n    }\n}\n```\n\n## apply-array\n\n### ❌ Example of incorrect code\n\n```js\nconst first = array[0];\n```\n\n### ✅ Example of correct code\n\n```js\nconst [first] = array;\n```\n\n## apply-object\n\n### ❌ Example of incorrect code\n\n```js\nconst name = user.name;\n\nhello = world.hello;\n```\n\n### ✅ Example of correct code\n\n```js\nconst {name} = user;\n\n({hello} = world);\n```\n\n## remove-useless-object\n\nCheck out in ????[**Putout Editor**](https://putout.cloudcmd.io/#/gist/c9ed04b421d75ae39e58038fa6e14630/4c097e3173990ec7e5ebabbe2cedf8e952092ebf).\n\n### ❌ Example of incorrect code\n\n```js\nconst {maxElementsInOneLine} = {\n    options,\n};\n```\n\n### ✅ Example of correct code\n\n```js\nconst {maxElementsInOneLine} = options;\n```\n\n## convert-object-to-array\n\nCheck out in ????[**Putout Editor**](https://putout.cloudcmd.io/#/gist/a1d26daf8bb83ee3ea1c0b62a6ad3afd/cef9b4d27c9dbb0d413a935b0359a6fe9b50364f).\n\n### ❌ Example of incorrect code\n\n```js\nconst {0: a, 1: b} = c;\n```\n\n### ✅ Example of correct code\n\n```js\nconst [a, b] = c;\n```\n\n## split-nested\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### ❌ 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}) {\n    const {b} = a;\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## split-call\n\n### ❌ Example of incorrect code\n\n```js\nconsole.log('hello')({uid} = path.scope);\nconsole.log('hello')[uid] = path.scope;\n```\n\n### ✅ Example of correct code\n\n```js\nconsole.log('hello');\n({uid} = path.scope);\n\nconsole.log('hello');\n[uid] = path.scope;\n```\n\n## merge-properties\n\nCheckout in ????[**Putout Editor**](https://putout.cloudcmd.io/#/gist/11c8cfa59f87e46238309b857448b9c5/688f10ad8fd7c0e4d9e9e0c74c399f1edb3ba29e).\n\n### ❌ Example of incorrect code\n\n```js\nconst {one} = require('numbers');\nconst {two} = require('numbers');\n\n({from} = data);\n({to} = data);\n({names} = data);\n```\n\n### ✅ Example of correct code\n\n```js\nconst {one, two} = require('numbers');\n\n({\n    from,\n    to,\n    names,\n} = data);\n```\n\n## remove-useless-arguments\n\n### ❌ Example of incorrect code\n\n```js\nonIfStatement({\n    push,\n    generate,\n    abc,\n    helloworld,\n});\n\nfunction onIfStatement({push}) {}\n```\n\n### ✅ Example of correct code\n\n```js\nonIfStatement({\n    push,\n});\n\nfunction onIfStatement({push}) {}\n```\n\n## remove-useless-variables\n\n### ❌ Example of incorrect code\n\n```js\nfunction hi(c) {\n    const {a, b} = c;\n}\n```\n\n### ✅ Example of correct code\n\n```js\nfunction hi({a, b}) {}\n```\n\n## extract-properties\n\n### Equal Deep\n\n#### ❌ Example of incorrect code\n\n```js\nconst {replaceWith} = a.operate;\nconst {isIdentifier} = a.types;\n```\n\n#### ✅ Example of correct code\n\n```js\nconst {operator, types} = a;\n\nconst {replaceWith} = operator;\nconst {isIdentifier} = types;\n```\n\n### Not Equal Deep\n\n#### ❌ Example of incorrect code\n\n```js\nconst {replaceWith} = a;\nconst {isIdentifier} = a.types;\n```\n\n#### ✅ Example of correct code\n\n```js\nconst {replaceWith, types} = a;\nconst {isIdentifier} = types;\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-destructuring#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}