{"name":"fairmont-reactive","version":"1.1.1","description":"Functional reactive programming in JavaScript and CoffeeScript.","files":["lib/","LICENSE"],"main":"lib/index.js","scripts":{"test":"coffee test/index.coffee","watch":"coffee -o lib/ -cw src/*.*coffee","prepublish":"coffee -o lib/ -c src/*.*coffee","postpublish":"(node_modules/.bin/json -f package.json 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","json":"^9.0.3"},"dependencies":{"fairmont-core":"1.0.x","fairmont-helpers":"1.1.x","fairmont-multimethods":"1.0.x"},"engine":"node >= 6.0.0","gitHead":"16fbc671e0c2a89a0c6fd348b78ac2241f81f8de","bugs":{"url":"https://github.com/dyoder/fairmont/issues"},"homepage":"https://github.com/dyoder/fairmont#readme","_id":"fairmont-reactive@1.1.1","_shasum":"78f78a40ea5b9302ca093799085cf85e28478f4c","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"dyoder","email":"danielyoder@gmail.com"},"maintainers":[{"name":"dyoder","email":"danielyoder@gmail.com"}],"dist":{"shasum":"78f78a40ea5b9302ca093799085cf85e28478f4c","tarball":"http://registry-npm.ywwl.com/fairmont-reactive/download/fairmont-reactive-1.1.1.tgz","integrity":"sha512-y6tFTwC3HP2l6+x3w1qtRfMgMawQ7eo9K4dPjR4nLCSRoeafDCkobcHRWPHgJCLr3RSU6wcnHOdZFJE3c522HA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDZRyI8h5cg7deBAk5SMg8YF8y08szqvl1wyd3QujgcbAiEAq+fIR/Y2LsLTG/TvhXb4FHVfZSyO71QznwVLdU3x5nU="}],"size":7947,"noattachment":false,"key":"/fairmont-reactive/-/fairmont-reactive-1.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fairmont-reactive-1.1.1.tgz_1462307169713_0.11752959596924484"},"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":1462307172121,"_cnpm_publish_time":1462307172121,"dist-tags":{"latest":"2.0.0"}}