{"name":"fairmont","version":"2.0.0","description":"Functional reactive programming for JavaScript and CoffeeScript.","files":["lib/","src/","README.md","LICENSE","VERSION"],"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":["coffee","coffeescript","utility"],"authors":["Dan Yoder"],"license":"ISC","devDependencies":{"amen":"1.0.x","coffee-script":"^1.10.0","json":"^9.0.3"},"dependencies":{"fairmont-core":"^1.0.0","fairmont-helpers":"^2.0.0","fairmont-multimethods":"^1.0.0","fairmont-reactive":"^2.0.0","fairmont-process":"^2.0.0","fairmont-filesystem":"^2.0.0"},"engine":"node >= 6.0.0","gitHead":"6434ca52c9abdf9d03f29b98b37403bdf7364aad","bugs":{"url":"https://github.com/dyoder/fairmont/issues"},"homepage":"https://github.com/dyoder/fairmont#readme","_id":"fairmont@2.0.0","_shasum":"e5914b282c5974086d570620a21a44243422e93e","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"pandanick","email":"nick@pandastrike.com"},"dist":{"shasum":"e5914b282c5974086d570620a21a44243422e93e","tarball":"http://registry-npm.ywwl.com/fairmont/download/fairmont-2.0.0.tgz","integrity":"sha512-Ihhwt4Qe6VNkTbfiOfIqmpL8JULdD/MU3df3m6Uv5R6rk+Aiukpro6dyv5i2YpN8Rgxom+HBPNdITc+P2QCLgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBMlB8Tms9Zk7EPJHo45eyaXWUmJo6uj7DNt96c1wPlwIgBJi9qM0euvNuSL3lIITad021sbfADXmCQuDaS4Ps9po="}],"size":2638,"noattachment":false,"key":"/fairmont/-/fairmont-2.0.0.tgz"},"maintainers":[{"name":"automatthew","email":"automatthew@gmail.com"},{"name":"benniemosher","email":"benniemosher@gmail.com"},{"name":"diminish7","email":"diminish7@gmail.com"},{"name":"dyoder","email":"danielyoder@gmail.com"},{"name":"f1337","email":"disinnovate+npm@gmail.com"},{"name":"maheshyellai","email":"mahesh.yellai@gmail.com"},{"name":"pandanick","email":"nick@pandastrike.com"},{"name":"pandapup","email":"real.david.harper@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fairmont-2.0.0.tgz_1486419323323_0.29488695645704865"},"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":1486419323548,"_cnpm_publish_time":1486419323548,"dist-tags":{"latest":"2.0.1"}}