{"name":"fairmont","version":"0.2.1","description":"A collection of useful functions and utilities.","main":"index.coffee","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/dyoder/fairmont.git"},"keywords":["coffee","coffeescript","utility"],"author":{"name":"Dan Yoder"},"license":"BSD","_id":"fairmont@0.2.1","dist":{"shasum":"5e8ee032fdc22727bfcb81804351202cccff6561","tarball":"http://registry-npm.ywwl.com/fairmont/download/fairmont-0.2.1.tgz","integrity":"sha512-ulWf2dI8vHulP2M5suLFV2voYow+fE9SkMN5rDtpuy2s7Z11mLQJHKMEk+DhSvyzQWL+X1klOjbthMmLqekVPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICrrQV8thCsvxbEUwJIHmgKGmK926cOhj9EgPgGa0whmAiEA3a0ATGoCTDwYd3PD5AWnJyhls4G8gVo9vRNKFOKBBws="}],"size":2632,"noattachment":false,"key":"/fairmont/-/fairmont-0.2.1.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"dyoder","email":"danielyoder@gmail.com"},"maintainers":[{"name":"dyoder","email":"danielyoder@gmail.com"}],"directories":{},"readme":"# Fairmont\n\nFairmont is a family of JavaScript libraries for functional reactive programming.\nFairmont takes full advantage of ES6+ features like iterators (including async iterators), generators, and promises.\nInspired by libraries like [Underscore](http://underscorejs.org/) and many others, Fairmont features include:\n\n* reactive programming support through async iterators\n* lazy evaluation on collection operations via iterators\n* core functional operations, like currying and composition\n* bridge functions for integrating with OOP-based libraries\n* common file and stream based operations\n* streams and event emitters modeled as asynchronous iterators\n* observers for reacting to changes in state\n* unifies synchronous and asynchronous programming models\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## Installation\n\nYou can simply install Fairmont as a whole:\n\n`npm install fairmont`\n\nOr you can simply install the components you need.\n\nExample:\n\n`npm install fairmont-core`\n\nLearn more about the individual Fairmont components by clicking on the links below:\n\n- [fairmont-core][]\n- [fairmont-reactive][]\n- [fairmont-multimethods][]\n- [fairmont-helpers][]\n- [fairmont-crypto][]\n- [fairmont-process][]\n- [fairmont-filesystem][]\n\nThe [API Reference] provides documentation on each component and its corresponding functions.\n\n## Status\n\nFairmont is available for production use.\nWe use Fairmont is wide-variety of development projects.\nWe welcome contributors!\n\n## Roadmap\n\nYou can get an idea of what we're planning by looking at the [tickets][]. 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[fairmont-core]:https://github.com/pandastrike/fairmont-core\n[fairmont-reactive]:https://github.com/pandastrike/fairmont-reactive\n[fairmont-multimethods]:https://github.com/pandastrike/fairmont-multimethods\n[fairmont-helpers]:https://github.com/pandastrike/fairmont-helpers\n[fairmont-crypto]:https://github.com/pandastrike/fairmont-crypto\n[fairmont-process]:https://github.com/pandastrike/fairmont-process\n[fairmont-filesystem]:https://github.com/pandastrike/fairmont-filesystem\n[API Reference]:https://github.com/pandastrike/fairmont/wiki/API-Reference\n","publish_time":1365193927706,"_cnpm_publish_time":1365193927706,"dist-tags":{"latest":"2.0.1"}}