{"name":"fairmont-reactive","version":"1.0.0-beta-28","description":"Functional reactive programming in JavaScript and CoffeeScript.","files":["src/","lib/","README.md"],"main":"lib/index.js","scripts":{"prepublish":"coffee --nodejs --harmony -o lib/ -c src/*.*coffee","test":"coffee --nodejs --harmony test/index.coffee","watch":"coffee --nodejs --harmony -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","fairmont":"^1.0.0-beta-19","harmony-reflect":"^1.4.0","json":"^9.0.3"},"dependencies":{"fairmont-core":"^1.0.0-beta-20","fairmont-helpers":"^1.0.0-beta-19","fairmont-multimethods":"^1.0.0-beta-19","when":"^3.7.3"},"engine":"node >= 0.12.x","gitHead":"db38730f16c1a7ddb7645f3b0cbeb64e431a6288","bugs":{"url":"https://github.com/dyoder/fairmont/issues"},"homepage":"https://github.com/dyoder/fairmont#readme","_id":"fairmont-reactive@1.0.0-beta-28","_shasum":"dd193783ec77df3ea4e605a6294875ae8f9893ed","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.6","_npmUser":{"name":"dyoder","email":"danielyoder@gmail.com"},"maintainers":[{"name":"dyoder","email":"danielyoder@gmail.com"}],"dist":{"shasum":"dd193783ec77df3ea4e605a6294875ae8f9893ed","tarball":"http://registry-npm.ywwl.com/fairmont-reactive/download/fairmont-reactive-1.0.0-beta-28.tgz","integrity":"sha512-G0Zyo5qZzUWebHPG3tvteBFG8g/LKPmECuDW4Kju0xZwX+nt2urkwJN772xVh+Ss8pF+84GGYFDns5QIPq2mlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF1ELR+WnUlmOPtwQM2CT9TtkBGe4E73NTlSGCR0VNOhAiBjm1tesXUDlUv9ApyBX08GLoqHOkCUR+EfrFcZq5ASPw=="}],"size":11557,"noattachment":false,"key":"/fairmont-reactive/-/fairmont-reactive-1.0.0-beta-28.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":1439832787088,"_cnpm_publish_time":1439832787088,"dist-tags":{"latest":"2.0.0"}}