{"library":"babel-plugin-parameter-decorator","type":"library","category":null,"description":"A Babel plugin that transforms function parameter decorators to behave like TypeScript parameter decorators. Current stable version is 1.0.16, with infrequent releases. It enables parameter decorators on constructor parameters and method parameters when using Babel with legacy decorator support. Unlike TypeScript's built-in support, this plugin requires the separate `@babel/plugin-proposal-decorators` with `legacy: true` and optionally `@babel/plugin-proposal-class-properties`. It is the only dedicated Babel plugin for parameter decorator transformation as of 2024, filling a gap left by other decorator plugins. Works with both JavaScript and TypeScript via Babel presets.","language":"javascript","status":"active","version":"1.0.16","tags":["javascript","babel","babel-plugin","function","parameter","decorators","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-parameter-decorator","imports":["// in .babelrc or babel.config.js\n{\n  \"plugins\": [\n    [\"@babel/plugin-proposal-decorators\", { \"legacy\": true }],\n    \"babel-plugin-parameter-decorator\"\n  ]\n}"]},{"cmd":"yarn add babel-plugin-parameter-decorator","imports":[]},{"cmd":"pnpm add babel-plugin-parameter-decorator","imports":[]}],"homepage":null,"github":"https://github.com/WarnerHooh/babel-plugin-parameter-decorator","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-parameter-decorator","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-parameter-decorator/compatibility"}}