# babel-plugin-transform-class-property-assignment-to-decorator

> Transforms a class property assignment to a decorated class property.

Latest version **0.1.1** (published 2019-06-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-transform-class-property-assignment-to-decorator
pnpm add babel-plugin-transform-class-property-assignment-to-decorator
yarn add babel-plugin-transform-class-property-assignment-to-decorator
bun add babel-plugin-transform-class-property-assignment-to-decorator
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-06-12 |
| First published | 2019-06-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jan Buschtöns |
| Maintainers | buschtoens |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-transform-class-property-assignment-to-decorator
- Repository: https://github.com/buschtoens/babel-plugin-transform-class-property-assignment-to-decorator
- npm.io page: https://npm.io/package/babel-plugin-transform-class-property-assignment-to-decorator

## Recent versions

- 0.1.1 (latest) — 2019-06-12
- 0.1.0 — 2019-06-12

## README

# babel-plugin-transform-class-property-assignment-to-decorator

Transforms a class property assignment to a decorated class property.

```js
import { task } from 'ember-concurrency';

class Foo {
  simpleTask = task(function*() {}).restartable();
}

// becomes

class Foo {
  @(task(function*() {}).restartable())
  simpleTask;
}
```

## Options

Accepts a configuration object with an `imports` property, that can look like
this:

```js
{
  imports: {
    'ember-concurrency': ['task', 'taskGroup']
  }
}
```

This configuration will transform all usages of the `task` and `taskGroup`
exports from the `ember-concurrency` modules.

---
_Source: https://npm.io/package/babel-plugin-transform-class-property-assignment-to-decorator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
