{"name":"fairmont","version":"0.7.3","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","devDependencies":{"testify":"~0.2.4"},"bugs":{"url":"https://github.com/dyoder/fairmont/issues"},"homepage":"https://github.com/dyoder/fairmont","_id":"fairmont@0.7.3","_shasum":"0d21ba7160224375cf7409170f0b50eafafb6e2e","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"maheshyellai","email":"mahesh.yellai@gmail.com"},"maintainers":[{"name":"dyoder","email":"danielyoder@gmail.com"},{"name":"maheshyellai","email":"mahesh.yellai@gmail.com"}],"dist":{"shasum":"0d21ba7160224375cf7409170f0b50eafafb6e2e","tarball":"http://registry-npm.ywwl.com/fairmont/download/fairmont-0.7.3.tgz","integrity":"sha512-VhwaKkxlUtOPiX7eZmgQ5cec0DhJKXbOunBNZpqo9vLguMV56zfnPV9u8iRXmyyFNxZxj4bNiNq+e3I29wz7NA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEgd/OrpWfCJ4/U9QM6CEOrVfEyK6/fm+TucqrTcsAn1AiEA3XRBaTRIaJc4mEE8WYyJ6wZ+uR0soEIOcYaoggbrKaQ="}],"size":4098,"noattachment":false,"key":"/fairmont/-/fairmont-0.7.3.tgz"},"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":1399025911778,"_cnpm_publish_time":1399025911778,"dist-tags":{"latest":"2.0.1"}}