{"name":"fairmont","version":"1.0.0-beta-06","description":"A collection of useful functions and utilities.","files":["src/","lib/","README.md"],"main":"lib/index.js","scripts":{"prepublish":"coffee --nodejs --harmony -o lib/ -c src/*.*coffee","test":"coffee --nodejs --harmony test/test.litcoffee","watch":"coffee --nodejs --harmony -o lib/ -cw src/*.*coffee","tag":"(node_modules/.bin/json -f package.json version | tee VERSION | xargs -I version git tag -am version version) && git push --tags"},"repository":{"type":"git","url":"git://github.com/dyoder/fairmont.git"},"keywords":["coffee","coffeescript","utility"],"authors":["Dan Yoder","Matthew King"],"license":"ISC","devDependencies":{"amen":"^1.0.0-alpha-03","json":"^9.0.3"},"dependencies":{"byline":"^4.2.1","when":"^3.7.2"},"engine":"node >= 0.12.x","gitHead":"ae46b90acee194fefc88f65208d4683ada2a798b","bugs":{"url":"https://github.com/dyoder/fairmont/issues"},"homepage":"https://github.com/dyoder/fairmont","_id":"fairmont@1.0.0-beta-06","_shasum":"954da3e854a067375e3629a5ec264ebe512f946d","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"dyoder","email":"danielyoder@gmail.com"},"maintainers":[{"name":"dyoder","email":"danielyoder@gmail.com"},{"name":"maheshyellai","email":"mahesh.yellai@gmail.com"},{"name":"automatthew","email":"automatthew@gmail.com"}],"dist":{"shasum":"954da3e854a067375e3629a5ec264ebe512f946d","tarball":"http://registry-npm.ywwl.com/fairmont/download/fairmont-1.0.0-beta-06.tgz","integrity":"sha512-jIFJ0qr8Yh1cC/D9zB7G6BrKrTlMSgRC4BreIpd0ZRlHGRmdkuLav7r6/pp1zKDh3wBfmLyj3+J2xB5p/E6GhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF5l3b+/D4Stef5/F9a2PcWSaXvtlELHC6X5PLieLxrnAiEAy+vUxcKduSXg510SaAikGowcYiBGvzfyxU9zEDjcCQs="}],"size":31465,"noattachment":false,"key":"/fairmont/-/fairmont-1.0.0-beta-06.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":1434488408339,"_cnpm_publish_time":1434488408339,"dist-tags":{"latest":"2.0.1"}}