fairmont-reactive
Functional reactive programming in JavaScript and CoffeeScript.
Last updated 10 years ago by pandanick .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install fairmont-reactive 
SYNC missed versions from official npm registry.

Fairmont-Reactive

Fairmont-Reactive is a JavaScript library for functional reactive programming. It's part of the Fairmont library. You can use it by itself, or simply as part of the Fairmont library.

Installation

npm install fairmont-reactive

Examples

Here's a simple reactive Web app implementing a counter using Fairmont's Reactive programming functions.

In JavaScript:

var $ = require("jquery"),
  F = require("fairmont");

$(function() {

  var data = { counter: 0 };

  F.go([
    F.events("click", $("a[href='#increment']")),
    F.map(function() { data.counter++; })
  ]);

  F.go([
    F.events("change", F.observe(data)),
    F.map(function() {
      $("p.counter")
        .html(data.counter);
    })
  ]);
});

In CoffeeScript:

{start, flow, events, map, observe} = require "fairmont-reactive"

$ = require "jquery"

$ ->

  data = counter: 0

  go [
    events "click", $("a[href='#increment']")
    map -> data.counter++
  ]

  go [
    events "change", observe data
    map ->
      $("p.counter")
      .html data.counter
  ]

You can run this example or look at our other reactive examples:

Documentation

Check out the wiki for an getting started guides, tutorials, and reference documentation.

Status

[Fairmont][0] is still under heavy development and is beta quality, meaning you should probably not use it in your production code.

Roadmap

You can get an idea of what we're planning by looking at the [issues list][200]. If you want something that isn't there, and you think it would be a good addition, please open a ticket.

Current Tags

  • 2.0.0                                ...           latest (10 years ago)

28 Versions

  • 2.0.0                                ...           10 years ago
  • 1.1.2                                ...           11 years ago
  • 1.1.1                                ...           11 years ago
  • 1.1.0                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
  • 1.0.0-beta-40                                ...           11 years ago
  • 1.0.0-beta-39                                ...           11 years ago
  • 1.0.0-beta-38                                ...           11 years ago
  • 1.0.0-beta-37                                ...           11 years ago
  • 1.0.0-beta-36                                ...           11 years ago
  • 1.0.0-beta-35                                ...           11 years ago
  • 1.0.0-beta-34                                ...           11 years ago
  • 1.0.0-beta-33                                ...           11 years ago
  • 1.0.0-beta-32                                ...           11 years ago
  • 1.0.0-beta-31                                ...           11 years ago
  • 1.0.0-beta-30                                ...           11 years ago
  • 1.0.0-beta-29                                ...           11 years ago
  • 1.0.0-beta-28                                ...           11 years ago
  • 1.0.0-beta-27                                ...           11 years ago
  • 1.0.0-beta-26                                ...           11 years ago
  • 1.0.0-beta-25                                ...           11 years ago
  • 1.0.0-beta-24                                ...           11 years ago
  • 1.0.0-beta-23                                ...           11 years ago
  • 1.0.0-beta-22                                ...           11 years ago
  • 1.0.0-beta-21                                ...           11 years ago
  • 1.0.0-beta-20                                ...           11 years ago
  • 1.0.0-beta-19                                ...           11 years ago
  • 1.0.0-beta-18                                ...           11 years ago
Maintainers (2)
Downloads
Total 138
Today 0
This Week 8
This Month 70
Last Day 0
Last Week 35
Last Month 61
Dependencies (3)
Dev Dependencies (2)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE