# babel-plugin-typescript-decorators

> Compatible typescript decorators (with parameter decorators).

Latest version **1.0.5** (published 2023-05-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-typescript-decorators
pnpm add babel-plugin-typescript-decorators
yarn add babel-plugin-typescript-decorators
bun add babel-plugin-typescript-decorators
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2023-05-15 |
| First published | 2022-03-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=14.0.0 |
| Dependencies | 1 |
| Unpacked size | 16.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | wmzy |
| Maintainers | wmzy |
| Keywords | babel, babel-plugin, typescript, parameter, decorators |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-typescript-decorators
- Repository: https://github.com/wmzy/babel-plugin-typescript-decorators
- Issues: https://github.com/wmzy/babel-plugin-typescript-decorators/issues
- npm.io page: https://npm.io/package/babel-plugin-typescript-decorators

## Dependencies (1)

- [@babel/helper-plugin-utils](https://npm.io/package/@babel/helper-plugin-utils.md) ^7.16.7

## Recent versions

- 1.0.5 (latest) — 2023-05-15
- 1.0.4 — 2023-05-15
- 1.0.3 — 2022-05-10
- 1.0.2 — 2022-03-31
- 1.0.1 — 2022-03-31
- 1.0.0 — 2022-03-31

## README

# babel-plugin-typescript-decorators

> Compatible typescript decorators (with parameter decorators).

## Install

Using npm:

```sh
npm install --save-dev babel-plugin-typescript-decorators
```

or using yarn:

```sh
yarn add --dev babel-plugin-typescript-decorators
```

## Usage

### With a configuration file (Recommended)

```json
{
  "presets": [
    ["@babel/preset-typescript", { "onlyRemoveTypeImports": true }]
  ],
  "plugins": ["babel-plugin-typescript-decorators"]
}
```

### Via CLI

```sh
babel --plugins babel-plugin-typescript-decorators script.js
```

### Via Node API

```js
require("@babel/core").transformSync("code", {
  plugins: ["babel-plugin-typescript-decorators"]"],
});
```

## Thanks

Fork from [@babel/plugin-proposal-decorators](https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-decorators) and inspired by [babel-plugin-parameter-decorator](https://github.com/WarnerHooh/babel-plugin-parameter-decorator)

---
_Source: https://npm.io/package/babel-plugin-typescript-decorators · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
