{"name":"fairmont-multimethods","version":"1.0.0-beta-20","description":"True functional reactive programming for JavaScript.","files":["src/","lib/","README.md"],"main":"lib/index.js","scripts":{"prepublish":"coffee -o lib/ -c src/*.*coffee","test":"coffee test/index.coffee","watch":"coffee -o lib/ -cw src/*.*coffee","version":"(node_modules/.bin/json -f package.json version > VERSION)","tag":"(cat 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","coffee-script":"~1.10.0","fairmont-helpers":"^1.0.0-beta-24","json":"^9.0.3"},"dependencies":{},"engine":"node >= 4.0.x","gitHead":"837ca7b041d492d2b1cfc16fb26434bfe3fea3a9","bugs":{"url":"https://github.com/dyoder/fairmont/issues"},"homepage":"https://github.com/dyoder/fairmont#readme","_id":"fairmont-multimethods@1.0.0-beta-20","_shasum":"3efa8181dd4b23fb32da6e078ab0e3fb602f5c3f","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"dyoder","email":"danielyoder@gmail.com"},"maintainers":[{"name":"dyoder","email":"danielyoder@gmail.com"}],"dist":{"shasum":"3efa8181dd4b23fb32da6e078ab0e3fb602f5c3f","tarball":"http://registry-npm.ywwl.com/fairmont-multimethods/download/fairmont-multimethods-1.0.0-beta-20.tgz","integrity":"sha512-KOMmn6EYyujRKkzw3WWbTzk0K3c31jLDe7RF4Lxv4nwiQwrpM34Lrj3BMnSrf5NwkLKF2Zy5w6W2/MmZaUlyZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDU/6RSh9Ivj3U1HQJl6WQU4IF1g3N4c+1PgLEjAz4+hQIgNE2ojRRt36GJrRrf0xl9TBtvJIXKB2mbAr1W/NDQDV8="}],"size":2825,"noattachment":false,"key":"/fairmont-multimethods/-/fairmont-multimethods-1.0.0-beta-20.tgz"},"directories":{},"readme":"# Fairmont-Multimethods\n\nFairmont-Multimethods is a JavaScript library providing support for multimethods in JavaScript.\n\n## Installation\n\n`npm i -S fairmont-multimethods`\n\n## Usage\n\n```coffee\n\nequal = Method.create\n  description: \"'Deep' equality operator\"\n  default: (a, b) -> a == b # fallback to shallow equality\n\n# when comparing objects, recursively check the values\n# corresponding to the union of their properties—\n# return false on the first inequality\nMethod.define equal, isObject, isObject, (a, b) ->\n  (a == b) || do ->\n    keys = new Set (Object.keys a)..., (Object.keys b)...\n    for key from keys\n      if ! equal a[key], b[key]\n        return false\n    true\n\n# when comparing arrays, recursively check values\n# after making sure they're the same length\n# return false on the first inequality\nMethod.define equal, isArray, isArray, (ax, bx) ->\n  (ax == bx) || do ->\n    return false if ax.length != bx.length\n    for i in [0..ax.length]\n      if !equal ax[i], bx[i]\n        return false\n    true\n\nequal \"this\", \"this\"  # => true, shallow equality works here\nequal { x: 1, y: 2 }, { x: 1, y: 2 } # => true, deep equality\nequal [1..5], [1..5] # true, deep equality\nequal { x: 1, y: 2}, [1..5] # false\n```\n\n[API documentation](https://github.com/pandastrike/fairmont/wiki/API-Reference#method).\n","publish_time":1444077274192,"_cnpm_publish_time":1444077274192,"dist-tags":{"latest":"2.0.2"}}