# rxel

> A library to help describing reactive behavior in simple definition

Latest version **0.1.2** (published 2015-02-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install rxel
pnpm add rxel
yarn add rxel
bun add rxel
```

## 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.2 |
| Published | 2015-02-20 |
| First published | 2015-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Author | Shinichi Tomita |
| Maintainers | stomita |

## Links

- npm: https://www.npmjs.com/package/rxel
- npm.io page: https://npm.io/package/rxel

## Dependencies (4)

- [rx](https://npm.io/package/rx.md) ^2.3.24
- [debug](https://npm.io/package/debug.md) ^2.1.1
- [lodash](https://npm.io/package/lodash.md) ^3.1.0
- [promise](https://npm.io/package/promise.md) ^6.1.0

## Recent versions

- 0.1.2 (latest) — 2015-02-20
- 0.1.1 — 2015-02-20
- 0.1.0 — 2015-02-19

## README

# Rxel

[![Build Status](https://travis-ci.org/stomita/rxel.svg)](https://travis-ci.org/stomita/rxel)

A library to help describing reactive behavior in simple definition.

## Example

```coffeescript
Rxel = require "rxel"
$ = require "jquery"

sc = Rxel.scope
  name: "John"
  message: Rxel.calc (name) -> "Hello, #{name}"
  keyword: undefined
  searchResult: Rxel.calc (keyword) ->
    $.getJSON "http://example.com/search.json?q=#{name}"

##
sc.message.then (message) ->
  console.log message # ==> "Hello, John"
.then ->
  sc.name = "Jane"
  sc.message
.then (message) ->
  console.log message # ==> "Hello, Jane"

##
$("input[name=keyword]").on "keyup", (e) ->
  keyword = $(@).val()
  # sc.keyword = keyword
  sc.$set "keyword", keyword

sc.$("searchResult").subscribe (result) ->
  console.log result

```

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