# babel-plugin-transform-shorthand-instance-expressions

> Babel plugin to enable shorthand instance expressions (similar to @ in CoffeeScript).

Latest version **0.0.1** (published 2016-04-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-transform-shorthand-instance-expressions
pnpm add babel-plugin-transform-shorthand-instance-expressions
yarn add babel-plugin-transform-shorthand-instance-expressions
bun add babel-plugin-transform-shorthand-instance-expressions
```

## 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.0.1 |
| Published | 2016-04-24 |
| First published | 2016-04-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Luke Horvat |
| Maintainers | lukehorvat |
| Keywords | babby, babel, babel-plugin, instance, shorthand, expression, this, self, scope |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-transform-shorthand-instance-expressions
- Repository: https://github.com/lukehorvat/babel-plugin-transform-shorthand-instance-expressions
- Homepage: https://github.com/lukehorvat/babel-plugin-transform-shorthand-instance-expressions#readme
- Issues: https://github.com/lukehorvat/babel-plugin-transform-shorthand-instance-expressions/issues
- npm.io page: https://npm.io/package/babel-plugin-transform-shorthand-instance-expressions

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2016-04-24

## README

# babel-plugin-transform-shorthand-instance-expressions [![NPM version](http://img.shields.io/npm/v/babel-plugin-transform-shorthand-instance-expressions.svg?style=flat-square)](https://www.npmjs.org/package/babel-plugin-transform-shorthand-instance-expressions)

Babel plugin to enable shorthand instance expressions (similar to `@` in CoffeeScript).

This is an __advanced__ plugin that requires [Babby](https://github.com/lukehorvat/babby) to work, not regular Babel.

It transforms code like this:

```javascript
class Logger {
  constructor(message) {
    #message = message;
    #logMessage();
  }

  logMessage() {
    console.log(#message);
  }
}
```

...into this:

```javascript
class Logger {
  constructor(message) {
    this.message = message;
    this.logMessage();
  }

  logMessage() {
    console.log(this.message);
  }
}
```

## Installation

Install the package with NPM:

```bash
$ npm install babel-plugin-transform-shorthand-instance-expressions
```

## Usage

Add the following line to your `.babelrc` file:

```json
{
  "plugins": ["transform-shorthand-instance-expressions"]
}
```

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