# babel-plugin-cerebral-proxy-tags

> Babel plugin that convertes proxy access to cerebral tagged templates.

Latest version **1.0.1** (published 2017-01-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-cerebral-proxy-tags
pnpm add babel-plugin-cerebral-proxy-tags
yarn add babel-plugin-cerebral-proxy-tags
bun add babel-plugin-cerebral-proxy-tags
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-01-25 |
| First published | 2017-01-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Fabrice Weinberg |
| Maintainers | fweinb |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-cerebral-proxy-tags
- Repository: https://github.com/FWeinb/babel-plugin-cerebral-proxy-tags
- Homepage: https://github.com/FWeinb/babel-plugin-cerebral-proxy-tags#readme
- Issues: https://github.com/FWeinb/babel-plugin-cerebral-proxy-tags/issues
- npm.io page: https://npm.io/package/babel-plugin-cerebral-proxy-tags

## Recent versions

- 1.0.1 (latest) — 2017-01-25
- 1.0.1-beta.3 (beta) — 2017-05-29
- 1.0.1-alpha.c00bd8f2 (next) — 2017-05-01
- 1.0.1-alpha.3aa44815 (test) — 2017-02-08
- 1.0.1-beta.2 — 2017-05-17
- 1.0.1-alpha.a2e68a01 — 2017-05-01
- 1.0.1-alpha.a54303bb — 2017-04-17
- 1.0.1-alpha.b517b73b — 2017-04-17
- 1.0.1-alpha.740f7920 — 2017-04-16
- 1.0.1-alpha.54e312b7 — 2017-04-14
- 1.0.1-alpha.7904e290 — 2017-04-12
- 1.0.1-alpha.e8d73105 — 2017-04-11
- 1.0.1-alpha.99699ebd — 2017-04-11
- 1.0.1-alpha.1319d521 — 2017-04-11
- 1.0.1-alpha.6975f2a3 — 2017-04-10
- … 81 more at https://npm.io/package/babel-plugin-cerebral-proxy-tags/versions

## README

babel-plugin-cerebral-proxy-tags [![Build Status](https://travis-ci.org/FWeinb/babel-plugin-cerebral-proxy-tags.svg?branch=master)](https://travis-ci.org/FWeinb/babel-plugin-cerebral-proxy-tags) [![codecov](https://codecov.io/gh/FWeinb/babel-plugin-cerebral-proxy-tags/branch/master/graph/badge.svg)](https://codecov.io/gh/FWeinb/babel-plugin-cerebral-proxy-tags)
=========================

In Cerebral v2 tags are a way to target input, state, props or signals. They are
implemented using a new ES2015 feature called [template tags](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#Tagged_template_literals).

I implemented these using [Proxy Object](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Proxy) in [cerebral-proxy-tags](https://github.com/FWeinb/cerebral-proxy-tags). This babel-plugin is tracking the usage of these specific proxy tags and translates them into the tagged template syntax.

## Usage

Instead of this way:

```js
import {set} from 'cerebral/operators'
import {state} from 'cerebral/tags'

export default [
  set(state`foo.bar`, 'baz')
]
```

You can write the same like showen bellow and it will get transpiled automatically.

```js
import {set} from 'cerebral/operators'
import {state} from 'cerebral-proxy-tags' // or 'cerebral/proxies'

export default [
  set(state.foo.bar, 'baz') // <-- usage
]
```

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