{"name":"fairmont-reactive","version":"1.0.0-beta-38","description":"Functional reactive programming in JavaScript and CoffeeScript.","files":["lib/","LICENSE","VERSION","README.md"],"main":"lib/index.js","scripts":{"prepublish":"coffee -o lib/ -c src/*.*coffee","test":"coffee test/index.coffee","watch":"coffee -o lib/ -cw src/*.*coffee","version":"(node_modules/.bin/json -f package.json version > VERSION)","tag":"(cat VERSION | xargs -I version git tag -am version version) && git push --tags"},"repository":{"type":"git","url":"git://github.com/dyoder/fairmont.git"},"keywords":[],"authors":["Dan Yoder"],"license":"ISC","devDependencies":{"amen":"^1.0.0-alpha-03","harmony-reflect":"^1.4.0","json":"^9.0.3"},"dependencies":{"fairmont-core":"^1.0.0-beta-23","fairmont-helpers":"^1.0.0-beta-26","fairmont-multimethods":"^1.0.0-beta-20","when":"^3.7.3"},"engine":"node >= 4.0.x","gitHead":"a058ffa5f478f7cc9754e8c4af5e093d7a351cbf","bugs":{"url":"https://github.com/dyoder/fairmont/issues"},"homepage":"https://github.com/dyoder/fairmont#readme","_id":"fairmont-reactive@1.0.0-beta-38","_shasum":"9a917eb369592fa7c0349b09516d647566afcb00","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"dyoder","email":"danielyoder@gmail.com"},"maintainers":[{"name":"dyoder","email":"danielyoder@gmail.com"}],"dist":{"shasum":"9a917eb369592fa7c0349b09516d647566afcb00","tarball":"http://registry-npm.ywwl.com/fairmont-reactive/download/fairmont-reactive-1.0.0-beta-38.tgz","integrity":"sha512-zuK/JZbREqy7HcFayJVZ3rfHh8BR4yGkJ08QuHb3/x75PFyVCuF8IdIunnxhV10f81myyreKhLG6UOSh7cQIcQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEKGlElJCojNIWsAlAJjvHijoVfoYKWs4tXgJ2geRsNgIhAJ1QR3u/kEnr8VIBJl2P4RxN0s0Lwr29HA4BSURPcOpr"}],"size":8532,"noattachment":false,"key":"/fairmont-reactive/-/fairmont-reactive-1.0.0-beta-38.tgz"},"directories":{},"readme":"# Fairmont-Reactive\n\nFairmont-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.\n\n## Installation\n\n`npm install fairmont-reactive`\n\n## Examples\n\nHere's a simple reactive Web app implementing a counter using Fairmont's Reactive programming functions.\n\nIn JavaScript:\n\n```javascript\nvar $ = require(\"jquery\"),\n  F = require(\"fairmont\");\n\n$(function() {\n\n  var data = { counter: 0 };\n\n  F.go([\n    F.events(\"click\", $(\"a[href='#increment']\")),\n    F.map(function() { data.counter++; })\n  ]);\n\n  F.go([\n    F.events(\"change\", F.observe(data)),\n    F.map(function() {\n      $(\"p.counter\")\n        .html(data.counter);\n    })\n  ]);\n});\n\n```\n\nIn CoffeeScript:\n\n```coffeescript\n{start, flow, events, map, observe} = require \"fairmont-reactive\"\n\n$ = require \"jquery\"\n\n$ ->\n\n  data = counter: 0\n\n  go [\n    events \"click\", $(\"a[href='#increment']\")\n    map -> data.counter++\n  ]\n\n  go [\n    events \"change\", observe data\n    map ->\n      $(\"p.counter\")\n      .html data.counter\n  ]\n```\n\nYou can run [this example][] or look at our other reactive examples:\n\n- a [todo-list][]\n- an [echo server][]\n- a [Web server][]\n- a [file watcher][]\n\n[this example]:https://github.com/pandastrike/fairmont-reactive/blob/master/examples/web-apps/counter\n[todo-list]:https://github.com/pandastrike/fairmont-reactive/blob/master/examples/web-apps/todo-list\n[echo server]:https://github.com/pandastrike/fairmont-reactive/blob/master/examples/echo-server.litcoffee\n[Web server]:https://github.com/pandastrike/fairmont-reactive/blob/master/examples/web-server.litcoffee\n[file watcher]:https://github.com/pandastrike/fairmont-reactive/blob/master/examples/file-watcher.litcoffee\n\n## Documentation\n\nCheck out the [wiki][] for an getting started guides, tutorials, and reference documentation.\n\n## Status\n\n[Fairmont][0] is still under heavy development and is `beta` quality, meaning you should probably not use it in your production code.\n\n## Roadmap\n\nYou 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.\n\n[tickets]:https://github.com/pandastrike/fairmont/issues\n[Fairmont]:https://github.com/pandastrike/fairmont\n[wiki]:https://github.com/pandastrike/fairmont/wiki\n","publish_time":1444704476179,"_cnpm_publish_time":1444704476179,"dist-tags":{"latest":"2.0.0"}}