{"name":"@putout/plugin-convert-throw","version":"3.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert throw statement into throw expression","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-throw#readme","main":"lib/convert-throw.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","convert","throw"],"devDependencies":{"@babel/core":"^8.0.0","@babel/eslint-parser":"^8.0.0-rc.2","@babel/plugin-proposal-throw-expressions":"^8.0.0-rc.2","@putout/eslint-flat":"^4.0.0","@putout/test":"^15.0.0","eslint":"^10.0.0","eslint-plugin-putout":"^31.0.0","madrun":"^13.0.0","superc8":"^12.0.0"},"peerDependencies":{"putout":">=42"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-convert-throw@3.0.0","gitHead":"5409dba6a0b5819c2019707b33847a1eb79e0512","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"26.3.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-zAyIp2FJba/ZxvYrkVL0GT298d+BvTt2k57ZfsSxmJi+nLnHvXXbLhAstjhpFodd5DcZUYl5PvqJt1stR2LNNw==","shasum":"acfc11c83a6ceb82e50d80881e7b020a679d1571","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-throw/download/@putout/plugin-convert-throw-3.0.0.tgz","fileCount":4,"unpackedSize":3615,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEtrJ1RllCo2bFFL/nnZoSFZhQ0XYhjZtdgCj2wdTJwfAiA7MGcBticNehJhubWCKop80wpBlqSMkhddYw/dtd3+og=="}],"size":1858,"noattachment":false,"key":"/@putout/plugin-convert-throw/-/@putout/plugin-convert-throw-3.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-convert-throw_3.0.0_1781642960330_0.9552961441689511"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-convert-throw [![NPM version][NPMIMGURL]][NPMURL]\n\n> This proposal defines new syntax to **throw** exceptions from within an expression context.\n>\n> (c) [tc39](https://github.com/tc39/proposal-throw-expressions#status)\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-throw.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-throw \"npm\"\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability convert **throw** statement to expression.\n\n## Install\n\n```\nnpm i @putout/plugin-convert-throw -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"convert-throw\": \"on\"\n    },\n    \"plugins\": [\n        \"convert-throw\"\n    ]\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst fn = () => {\n    throw Error('hello');\n};\n```\n\n## ✅ Example of correct code\n\n```js\nconst fn = () => throwError('hello');\n```\n\n## License\n\nMIT\n","publish_time":1781642960449,"_cnpm_publish_time":1781642960449,"dist-tags":{"latest":"3.0.0"}}