{"_id":"@putout/plugin-return","_rev":"9-f3eb91079b9821f3161f86f8aaf65106","name":"@putout/plugin-return","dist-tags":{"latest":"4.1.0"},"versions":{"1.0.0":{"name":"@putout/plugin-return","version":"1.0.0","keywords":["putout","putout-plugin","plugin","return"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-return@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-return#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"7773a1e3c53fcbb42802f34f39d8cffcb075f44b","tarball":"https://registry.npmjs.org/@putout/plugin-return/-/plugin-return-1.0.0.tgz","fileCount":10,"integrity":"sha512-bPUUv/plq3Evm8SLYURlGLzb3bzJCGPzR7N+EVevNl2CH4IrCz2T4b29NofC8rEhs5ByKXFQtgGVF041DLvbfw==","signatures":[{"sig":"MEQCIEP1Z/vPMjBZ+vE7gnZjSUa4zJcNboH+v9Z9LalEPNhkAiBEV7JXSt8lbuekNo/bzkfDM0uco7B5r59G7p5SxrOh3A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15155},"main":"lib/index.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"0a04e7bdba57b1cda825c9e230312b33964f7fc7","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":"10.9.0","description":"🐊Putout plugin adds ability to transform code related to return","directories":{},"_nodeVersion":"22.13.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","lerna":"^6.0.1","eslint":"^9.0.0","madrun":"^10.0.0","montag":"^1.2.1","nodemon":"^3.0.1","@putout/test":"^11.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0","@putout/plugin-putout":"*","@putout/plugin-declare":"*","@putout/plugin-typescript":"*","@putout/plugin-reuse-duplicate-init":"*","@putout/plugin-remove-unused-variables":"*","@putout/plugin-declare-before-reference":"*"},"peerDependencies":{"putout":">=37"},"_npmOperationalInternal":{"tmp":"tmp/plugin-return_1.0.0_1738163858160_0.06447071997998943","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@putout/plugin-return","version":"1.1.0","keywords":["putout","putout-plugin","plugin","return"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-return@1.1.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-return#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"2730cd0faa877776936a6a93a5b3c2236113beeb","tarball":"https://registry.npmjs.org/@putout/plugin-return/-/plugin-return-1.1.0.tgz","fileCount":11,"integrity":"sha512-OHAel012M+julvZlgHgW06IbGRPfCfvNPMqw8ROQYoq/l7g8PzJY9+EiBSiZuYbdvQmmhVDAM7sqQs7lrCrzrA==","signatures":[{"sig":"MEUCIBwTGvm3qByOYynNtYyYXY6SaqLIRv/n3MbqgKcY1zOmAiEAo00suf6Sok499R5KTVe81tu2X1PqpNveEr3C+R6trJg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14664},"main":"lib/index.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"a309b9970d8eb4f4a6e5e6f79e3c0bc07bca96a6","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":"10.9.0","description":"🐊Putout plugin adds ability to transform code related to return","directories":{},"_nodeVersion":"22.13.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","lerna":"^6.0.1","eslint":"^9.0.0","madrun":"^10.0.0","montag":"^1.2.1","nodemon":"^3.0.1","@putout/test":"^11.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0","@putout/plugin-putout":"*","@putout/plugin-declare":"*","@putout/plugin-typescript":"*","@putout/plugin-reuse-duplicate-init":"*","@putout/plugin-remove-unused-variables":"*","@putout/plugin-declare-before-reference":"*"},"peerDependencies":{"putout":">=37"},"_npmOperationalInternal":{"tmp":"tmp/plugin-return_1.1.0_1738164628674_0.4549975245428195","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@putout/plugin-return","version":"1.1.1","keywords":["putout","putout-plugin","plugin","return"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-return@1.1.1","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-return#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"81576be33058f0d8295f93c75898f0ea262bfcc8","tarball":"https://registry.npmjs.org/@putout/plugin-return/-/plugin-return-1.1.1.tgz","fileCount":11,"integrity":"sha512-hy/+rN02eyDRu/2OU/UgEci0wZG4Jwo8o3JzJPatZ69ZLW3bMneRubT+jxi9TOEu5DMmRsrT+4DDOTtizll5ig==","signatures":[{"sig":"MEUCIFGW4bs15HAQ2RpzOjvfeKc0trVjWrhEGVMR6Ciroi2tAiEAtH2f5SwgAj7CxAPX4TlTBajyLc1++Mo7cyLZv1vG3ms=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14664},"main":"lib/index.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"efbc6c838dc470d9f0a9b0a09d7706d90f55a316","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":"10.9.0","description":"🐊Putout plugin adds ability to transform code related to return","directories":{},"_nodeVersion":"22.13.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","lerna":"^6.0.1","eslint":"^9.0.0","madrun":"^10.0.0","montag":"^1.2.1","nodemon":"^3.0.1","@putout/test":"^11.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^24.0.0","@putout/plugin-putout":"*","@putout/plugin-declare":"*","@putout/plugin-typescript":"*","@putout/plugin-reuse-duplicate-init":"*","@putout/plugin-remove-unused-variables":"*","@putout/plugin-declare-before-reference":"*"},"peerDependencies":{"putout":">=38"},"_npmOperationalInternal":{"tmp":"tmp/plugin-return_1.1.1_1738164946935_0.529266311797778","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@putout/plugin-return","version":"1.1.2","keywords":["putout","putout-plugin","plugin","return"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-return@1.1.2","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-return#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"dc069f1134ab30375928c1777cde407d38c0a126","tarball":"https://registry.npmjs.org/@putout/plugin-return/-/plugin-return-1.1.2.tgz","fileCount":11,"integrity":"sha512-QbCay24r8PNv9j8EjjZ/wdHVhLvuyqVdAbFM04iYOrC85XUJvY4MgCnVuj5N4vFhBEH0GWwhvNaaBZgc4hRBKA==","signatures":[{"sig":"MEUCIQDG9HHU/xa1t2rlSQGZCEm0JOlQVP4BEUGBrsO7aVQDgQIgEXOyNnlRBwZuAMMLUkBnMv5oNGN1PXGKBQmicN6eHl8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14752},"main":"lib/index.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"a387499642df0de725667eef595c878a056a8e5d","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":"10.9.0","description":"🐊Putout plugin adds ability to transform code related to return","directories":{},"_nodeVersion":"22.13.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","lerna":"^6.0.1","eslint":"^9.0.0","madrun":"^10.0.0","montag":"^1.2.1","nodemon":"^3.0.1","@putout/test":"^11.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^24.0.0","@putout/plugin-putout":"*","@putout/plugin-declare":"*","@putout/plugin-typescript":"*","@putout/plugin-reuse-duplicate-init":"*","@putout/plugin-remove-unused-variables":"*","@putout/plugin-declare-before-reference":"*"},"peerDependencies":{"putout":">=38"},"_npmOperationalInternal":{"tmp":"tmp/plugin-return_1.1.2_1738177303105_0.26800369889673203","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@putout/plugin-return","version":"2.0.0","keywords":["putout","putout-plugin","plugin","return"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-return@2.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-return#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"bb286427afaefe96c48b7c841688cca29b61dc2d","tarball":"https://registry.npmjs.org/@putout/plugin-return/-/plugin-return-2.0.0.tgz","fileCount":11,"integrity":"sha512-g6d9NaMOS49LQo6jjKxKtBpA2oFKAMbLkeii8ce/2UHTeS8X8ozwMwcEiPd9ubjmgL6ZiWTPuWjm1Cb4w4Se5Q==","signatures":[{"sig":"MEYCIQCh510UYDFRTiWmBbKDNOaHg07rud0ynoDxy9R1rlzUmgIhALgt44SQXGE4Wh22zd8xzB7Faz5lPPKTvbeU4zRXNbrh","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14799},"main":"lib/index.js","type":"module","engines":{"node":">=20"},"gitHead":"748b2d5179c98d627f5805e1cc49456810ed983f","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 transform code related to return","directories":{},"_nodeVersion":"22.14.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","montag":"^1.2.1","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","@putout/plugin-putout":"*","@putout/plugin-declare":"*","@putout/plugin-typescript":"*","@putout/plugin-reuse-duplicate-init":"*","@putout/plugin-remove-unused-variables":"*","@putout/plugin-declare-before-reference":"*"},"peerDependencies":{"putout":">=40"},"_npmOperationalInternal":{"tmp":"tmp/plugin-return_2.0.0_1744815240511_0.2717045586935771","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@putout/plugin-return","version":"3.0.0","keywords":["putout","putout-plugin","plugin","return"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-return@3.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-return#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"9f59a540a5ef9b25a5c3522ddf0aaba22eb85570","tarball":"https://registry.npmjs.org/@putout/plugin-return/-/plugin-return-3.0.0.tgz","fileCount":11,"integrity":"sha512-kp+HPBCbylJSV4ZoEqDjH7IheJKBOHqHeVNyL1R8UM3+QKAm+fy+Rb8zP05IPfozf6XQKFI87p/+UL4MToTouw==","signatures":[{"sig":"MEQCIFh2E7m2d1IVW/xJoZHH0b95PG9X1l2djNmqZm4HeMYAAiAiWiaFWRybSnOGJKoxqyZw4VrKm0wE773mmMasYhEQEA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14731},"main":"lib/index.js","type":"module","engines":{"node":">=20"},"gitHead":"539d27e4b9b16d8220d151f08c488cab6ec3d3b3","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 transform code related to return","directories":{},"_nodeVersion":"25.2.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^10.0.0-alpha.0","madrun":"^11.0.0","montag":"^1.2.1","nodemon":"^3.0.1","@putout/test":"^14.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","@putout/plugin-putout":"*","@putout/plugin-declare":"*","@putout/plugin-variables":"*","@putout/plugin-typescript":"*","@putout/plugin-reuse-duplicate-init":"*","@putout/plugin-declare-before-reference":"*"},"peerDependencies":{"putout":">=41"},"_npmOperationalInternal":{"tmp":"tmp/plugin-return_3.0.0_1767042377202_0.9912041992474954","host":"s3://npm-registry-packages-npm-production"}},"4.0.0":{"name":"@putout/plugin-return","version":"4.0.0","keywords":["putout","putout-plugin","plugin","return"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-return@4.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-return#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"c631a636bb6407db7fdaf7b51147e94c0b7350da","tarball":"https://registry.npmjs.org/@putout/plugin-return/-/plugin-return-4.0.0.tgz","fileCount":12,"integrity":"sha512-wNFDxvybr3hfbGzcYBL8LIvE475/cM/buAg17akik5bNwJVuW1+ofsuNY5FYH6iV7KI8GyhYaEsjSB/ZIHbM2g==","signatures":[{"sig":"MEYCIQCcmP9rXd7YzhuBzhwJr6TEswLN60Fyyyhy0fFEWVpjGQIhAOr2vfZD/I9MpjiJ9bVn/KUN4W9ETDFuU8qpm76kfxKS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15878},"main":"lib/index.js","type":"module","engines":{"node":">=22"},"gitHead":"847b3b1eefdd08873e3262a40449dfe8440b7c4a","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 transform code related to return","directories":{},"_nodeVersion":"24.14.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","montag":"^1.2.1","nodemon":"^3.0.1","superc8":"^12.0.0","@putout/test":"^15.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^31.0.0","@putout/plugin-putout":"*","@putout/plugin-declare":"*","@putout/plugin-variables":"*","@putout/plugin-typescript":"*","@putout/plugin-reuse-duplicate-init":"*","@putout/plugin-declare-before-reference":"*"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"tmp":"tmp/plugin-return_4.0.0_1773099855735_0.12783364574790745","host":"s3://npm-registry-packages-npm-production"}},"4.0.1":{"name":"@putout/plugin-return","version":"4.0.1","keywords":["putout","putout-plugin","plugin","return"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-return@4.0.1","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-return#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"69afcad1bae426a013515fb6c66f0d20fc5653cf","tarball":"https://registry.npmjs.org/@putout/plugin-return/-/plugin-return-4.0.1.tgz","fileCount":12,"integrity":"sha512-E0Fu5XmlrQeq/G5+pCb6jCieNHQ9pULdYUdVyLsrJU4AdRSQSb5pOfH6MIj3gtnrqZ/Z/V5kPYX7QU4QUftvvw==","signatures":[{"sig":"MEQCIDn6H0T/4yGSIL9dyKbzWkjcJizvcKSCQd4Ukbdl4zUZAiBcDWWeFvHca7KrE/q76xI2W7Xmm9BitVzS0zOsNomSJA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15850},"main":"lib/index.js","type":"module","engines":{"node":">=22"},"gitHead":"11ed54bcf13f0e6c864a363fac285ddb031b3b4e","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 transform code related to return","directories":{},"_nodeVersion":"25.9.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","montag":"^1.2.1","nodemon":"^3.0.1","superc8":"^12.0.0","@putout/test":"^15.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^31.0.0","@putout/plugin-putout":"*","@putout/plugin-declare":"*","@putout/plugin-variables":"*","@putout/plugin-typescript":"*","@putout/plugin-reuse-duplicate-init":"*","@putout/plugin-declare-before-reference":"*"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"tmp":"tmp/plugin-return_4.0.1_1775991727559_0.9408942591339258","host":"s3://npm-registry-packages-npm-production"}},"4.1.0":{"name":"@putout/plugin-return","version":"4.1.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to transform code related to return","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-return#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","return"],"devDependencies":{"@putout/plugin-declare":"*","@putout/plugin-declare-before-reference":"*","@putout/plugin-putout":"*","@putout/plugin-reuse-duplicate-init":"*","@putout/plugin-typescript":"*","@putout/plugin-variables":"*","@putout/test":"^15.0.0","eslint":"^10.0.0","eslint-plugin-putout":"^31.0.0","madrun":"^13.0.0","montag":"^2.0.0","nodemon":"^3.0.1","superc8":"^12.0.0"},"peerDependencies":{"putout":">=42"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-return@4.1.0","gitHead":"320fa6e1cd9bfdd904c8b8452abc12cb305fdd3f","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"26.5.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-NTZrgVYHpaO9HCL6e3QPmPD47ZkBZSXQmCAou5Vc2Ya/bj9y4Lc+0eeGEnJbOTHOvCrTMUKANGoWLXFR0LxcBw==","shasum":"f07dbfca93c9c4763a30b46ef5b41e634ea7699c","tarball":"https://registry.npmjs.org/@putout/plugin-return/-/plugin-return-4.1.0.tgz","fileCount":12,"unpackedSize":16050,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC8EAISCjrZ+kkt5Dv7YkkFkwRvHaCxIXQ18aAxgZ78+gIhAI43REBq9inx0vBF+PYFALm8b+Jc+x1g1VYUOD2Lh6p+"}]},"_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-return_4.1.0_1785252887051_0.9301434347925905"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-29T15:17:38.025Z","modified":"2026-07-28T15:34:47.371Z","1.0.0":"2025-01-29T15:17:38.372Z","1.1.0":"2025-01-29T15:30:28.871Z","1.1.1":"2025-01-29T15:35:47.159Z","1.1.2":"2025-01-29T19:01:43.331Z","2.0.0":"2025-04-16T14:54:00.710Z","3.0.0":"2025-12-29T21:06:17.351Z","4.0.0":"2026-03-09T23:44:15.891Z","4.0.1":"2026-04-12T11:02:07.748Z","4.1.0":"2026-07-28T15:34:47.199Z"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"license":"MIT","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-return#readme","keywords":["putout","putout-plugin","plugin","return"],"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"🐊Putout plugin adds ability to transform code related to return","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"readme":"# @putout/plugin-return [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-return.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-return \"npm\"\n\n> The `return` statement ends function execution and specifies a value to be returned to the function caller.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/return)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to transform to new **Node.js** API and apply best practices.\n\n## Install\n\n```\nnpm i putout @putout/plugin-return -D\n```\n\n## Rules\n\n- ✅ [apply-early-return](#apply-early-return);\n- ✅ [convert-from-continue](#convert-from-continue);\n- ✅ [convert-from-break](#convert-from-continue);\n- ✅ [merge-with-next-sibling](#merge-with-next-sibling);\n- ✅ [remove-useless](#remove-useless);\n- ✅ [remove-last-empty](#remove-last-empty);\n- ✅ [simplify-boolean](#simplify-boolean);\n\n## Config\n\n```json\n{\n    \"rules\": {\n        \"return/apply-early-return\": \"on\",\n        \"return/convert-from-continue\": \"on\",\n        \"return/convert-from-break\": \"on\",\n        \"return/merge-with-next-sibling\": \"on\",\n        \"return/remove-useless\": \"on\",\n        \"return/remove-last-empty\": \"on\",\n        \"return/simplify-boolean\": \"on\"\n    }\n}\n```\n\n## apply-early-return\n\n> In short, an **early return** provides functionality so the result of a conditional statement can be returned as soon as a result is available, rather than wait until the rest of the function is run.\n>\n> (c) [dev.to](https://dev.to/jenniferlynparsons/early-returns-in-javascript-5hfb)\n\n### ❌ Example of incorrect code\n\n```js\nfunction get(a) {\n    const b = 0;\n    \n    if (a > 0)\n        return 5;\n    \n    return 7;\n}\n```\n\n### ✅ Example of correct code\n\n```js\nfunction get(a) {\n    if (a > 0)\n        return 5;\n    \n    return 7;\n}\n```\n\n## convert-from-continue\n\n> The `continue` statement terminates execution of the statements in the current iteration of the current or labeled loop, and continues execution of the loop with the next iteration.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/continue)\n\n> `SyntaxError: Illegal continue statement: no surrounding iteration statement`\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Bad_continue)\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/a321ee4d76a066c17835b4aa50f91499/e0d161c7bd8b0d63ebf8d5a5026529c2fb8e0cb3).\n\n### ❌ Example of incorrect code\n\n```ts\nfunction x() {\n    if (a)\n        continue;\n    \n    return b;\n}\n```\n\n### ✅ Example of correct code\n\n```js\nfunction x() {\n    if (a)\n        return;\n    \n    return b;\n}\n```\n\n## convert-from-break\n\n> The `break` statement terminates the current loop or switch statement and transfers program control to the statement following the terminated statement.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax)\n\n> `SyntaxError: unlabeled break must be inside loop or switch`\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Bad_break)\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/a321ee4d76a066c17835b4aa50f91499/10646f7383b8d58cda02417485d5281955da95be).\n\n### ❌ Example of incorrect code\n\n```ts\nfunction x() {\n    if (a)\n        break;\n    \n    return false;\n}\n```\n\n### ✅ Example of correct code\n\n```js\nfunction x() {\n    if (a)\n        return;\n    \n    return false;\n}\n```\n\n## merge-with-next-sibling\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/2cb7e8836ce0adb6009f21859f8a0c15/9eea5b36a4f6664b05f2f9f0abd271a62a4dbbbe).\n\n### ❌ Example of incorrect code\n\n```js\nfunction x() {\n    return;\n    {\n        hello: 'world';\n    }\n    \n    return;\n    5;\n    \n    return;\n    a ? 2 : 3;\n}\n```\n\n### ✅ Example of correct code\n\n```js\nfunction x() {\n    return {\n        hello: 'world',\n    };\n    \n    return 5;\n    \n    return a ? 2 : 3;\n}\n```\n\n### remove-useless\n\n### ❌ Example of incorrect code\n\n```js\nconst traverse = ({push}) => {\n    return {\n        ObjectExpression(path) {\n            push(path);\n        },\n    };\n};\n```\n\n### ✅ Example of correct code\n\n```js\nconst traverse = ({push}) => ({\n    ObjectExpression(path) {\n        push(path);\n    },\n});\n```\n\n### remove-last-empty\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/111549a3e6d61f8637ea12217062ea80/10e7842f9fbbf7fb0712d3b41cdcc707ae410fe5).\n\n### ❌ Example of incorrect code\n\n```js\nconst exit = (vars, path, {push}) => {\n    push(path);\n    return;\n};\n```\n\n### ✅ Example of correct code\n\n```js\nconst exit = (vars, path, {push}) => {\n    push(path);\n};\n```\n\n## simplify-boolean\n\nCheck out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/304035b9529830cf20e76e9a1f35f14c/39c743921c6bfad3984a3989f25c2986ab51e8c8).\n\n### ❌ Example of incorrect code\n\n```js\nfunction isA(a, b) {\n    if (a.length === b.length)\n        return true;\n    \n    return false;\n}\n```\n\n### ✅ Example of correct code\n\n```js\nfunction isA(a, b) {\n    return a.length !== b.length;\n}\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}