# riot-compiler

> Compiler for riot .tag files

Latest version **3.6.0** (published 2019-03-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install riot-compiler
pnpm add riot-compiler
yarn add riot-compiler
bun add riot-compiler
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.6.0 |
| Published | 2019-03-03 |
| First published | 2015-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 136.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 70 |
| Author | Riot maintainers team + smart people from all over the world |
| Maintainers | gianlucaguarini |
| Keywords | riot, virtualdom, tag, compiler |

## Links

- npm: https://www.npmjs.com/package/riot-compiler
- Repository: https://github.com/riot/compiler
- Homepage: https://github.com/riot/compiler#readme
- Issues: https://github.com/riot/compiler/issues
- npm.io page: https://npm.io/package/riot-compiler

## Dependencies (3)

- [skip-regex](https://npm.io/package/skip-regex.md) ^0.3.1
- [source-map](https://npm.io/package/source-map.md) ^0.7.2
- [string-similarity](https://npm.io/package/string-similarity.md) ^1.2.0

## 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

- 3.6.0 (latest) — 2019-03-03
- 3.0.0-alpha.5 (next) — 2016-11-16
- 3.5.3 — 2019-01-04
- 4.0.0-alpha.0 — 2018-12-29
- 3.5.2 — 2018-11-25
- 3.5.1 — 2018-05-10
- 3.5.0 — 2018-05-10
- 3.4.0 — 2017-12-24
- 3.3.1 — 2017-12-23
- 3.3.0 — 2017-12-09
- 3.2.6 — 2017-10-27
- 3.2.5 — 2017-09-19
- 3.2.4 — 2017-06-22
- 3.2.3 — 2017-06-04
- 3.2.2 — 2017-05-20
- … 35 more at https://npm.io/package/riot-compiler/versions

## README

[![Build Status][travis-image]][travis-url]
[![Issue Count][codeclimate-image]][codeclimate-url]
[![Coverage Status][coverage-image]][coverage-url]
[![NPM version][npm-version-image]][npm-url]
[![NPM downloads][npm-downloads-image]][npm-url]
[![MIT License][license-image]][license-url]

## Documentation

- [API](doc/)

## Installation

### Npm

`$ npm install riot-compiler --save`

### Read more in the [doc folder](doc/) and the [CHANGELOG](CHANGELOG.md)

_Please note: the documentation is a work in progress. Contributions are welcome._

#### For babel users

* babel - For `babel-core` v6.x - You must `npm install babel-preset-es2015-riot` too, for this to work.
* babel - For `@babel/core` v7.x - You must set the option `"module": "false"` in order to compile your tags properly

### Known Issues

* Expressions within attribute values containing `>` must be enclosed in quotes. Ex: `<mytag hidden="{ a > 5 }">`.
* Shorthands within attributes parsed by CoffeeScript must be prefixed with a caret: `<mytag class="{^ c:1 }">`

[travis-image]:  https://img.shields.io/travis/riot/compiler.svg?style=flat-square
[travis-url]:    https://travis-ci.org/riot/compiler
[license-image]: https://img.shields.io/badge/license-MIT-000000.svg?style=flat-square
[license-url]:   LICENSE.txt
[npm-version-image]:   https://img.shields.io/npm/v/riot-compiler.svg?style=flat-square
[npm-downloads-image]: https://img.shields.io/npm/dm/riot-compiler.svg?style=flat-square
[npm-url]:             https://npmjs.org/package/riot-compiler
[coverage-image]:    https://img.shields.io/coveralls/riot/compiler/master.svg?style=flat-square
[coverage-url]:      https://coveralls.io/r/riot/compiler?branch=master
[codeclimate-image]: https://api.codeclimate.com/v1/badges/37de24282e8d113bb0cc/maintainability
[codeclimate-url]:   https://codeclimate.com/github/riot/compiler

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