{"_id":"observ","_rev":"2909023","name":"observ","description":"A observable value representation","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"raynos","email":""}],"time":{"modified":"2023-01-19T08:36:55.000Z","created":"2013-07-14T20:43:17.234Z","0.2.0":"2014-06-03T19:46:49.685Z","0.1.6":"2014-05-25T04:50:24.943Z","0.1.5":"2013-09-25T00:04:53.036Z","0.1.4":"2013-09-25T00:04:02.167Z","0.1.3":"2013-07-15T04:00:46.185Z","0.1.2":"2013-07-15T03:51:44.780Z","0.1.1":"2013-07-15T01:36:01.029Z","0.1.0":"2013-07-14T20:43:17.234Z"},"users":{},"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/observ.git"},"versions":{"0.2.0":{"name":"observ","version":"0.2.0","description":"A observable value representation","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/observ.git"},"main":"index","homepage":"https://github.com/Raynos/observ","contributors":[{"name":"Raynos"}],"bugs":{"url":"https://github.com/Raynos/observ/issues","email":"raynos2@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~1.0.2"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/observ/raw/master/LICENSE"}],"scripts":{"test":"node ./test/index.js","start":"node ./index.js","watch":"nodemon -w ./index.js index.js","travis-test":"istanbul cover ./test/index.js && ((cat coverage/lcov.info | coveralls) || exit 0)","cover":"istanbul cover --report none --print detail ./test/index.js","view-cover":"istanbul report html && google-chrome ./coverage/index.html","test-browser":"testem-browser ./test/browser/index.js","testem":"testem-both -b=./test/browser/index.js"},"testling":{"files":"test/index.js","browsers":["ie/8..latest","firefox/16..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"7c1d29855e745f1002fa5c2f14bf785563ccad41","_id":"observ@0.2.0","_shasum":"0bc39b3e29faa5f9e6caa5906cb8392df400aa68","_from":".","_npmVersion":"1.4.12","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"raynos","email":""}],"dist":{"shasum":"0bc39b3e29faa5f9e6caa5906cb8392df400aa68","size":3295,"noattachment":false,"key":"/observ/-/observ-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/observ/download/observ-0.2.0.tgz"},"directories":{},"publish_time":1401824809685,"_hasShrinkwrap":false,"_cnpm_publish_time":1401824809685,"_cnpmcore_publish_time":"2021-12-17T20:32:45.227Z"},"0.1.6":{"name":"observ","version":"0.1.6","description":"A observable value representation","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/observ.git"},"main":"index","homepage":"https://github.com/Raynos/observ","contributors":[{"name":"Raynos"}],"bugs":{"url":"https://github.com/Raynos/observ/issues","email":"raynos2@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~1.0.2"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/observ/raw/master/LICENSE"}],"scripts":{"test":"node ./test/index.js","start":"node ./index.js","watch":"nodemon -w ./index.js index.js","travis-test":"istanbul cover ./test/index.js && ((cat coverage/lcov.info | coveralls) || exit 0)","cover":"istanbul cover --report none --print detail ./test/index.js","view-cover":"istanbul report html && google-chrome ./coverage/index.html","test-browser":"testem-browser ./test/browser/index.js","testem":"testem-both -b=./test/browser/index.js"},"testling":{"files":"test/index.js","browsers":["ie/8..latest","firefox/16..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"_id":"observ@0.1.6","_shasum":"69df411f0f0e53aa926ec33de86dc67daeb5ac18","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"raynos","email":""}],"dist":{"shasum":"69df411f0f0e53aa926ec33de86dc67daeb5ac18","size":3293,"noattachment":false,"key":"/observ/-/observ-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/observ/download/observ-0.1.6.tgz"},"directories":{},"publish_time":1400993424943,"_hasShrinkwrap":false,"_cnpm_publish_time":1400993424943,"_cnpmcore_publish_time":"2021-12-17T20:32:45.440Z"},"0.1.5":{"name":"observ","version":"0.1.5","description":"A observable value representation","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/observ.git"},"main":"index","homepage":"https://github.com/Raynos/observ","contributors":[{"name":"Raynos"}],"bugs":{"url":"https://github.com/Raynos/observ/issues","email":"raynos2@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~1.0.2"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/observ/raw/master/LICENSE"}],"scripts":{"test":"node ./test/index.js","start":"node ./index.js","watch":"nodemon -w ./index.js index.js","travis-test":"istanbul cover ./test/index.js && ((cat coverage/lcov.info | coveralls) || exit 0)","cover":"istanbul cover --report none --print detail ./test/index.js","view-cover":"istanbul report html && google-chrome ./coverage/index.html","test-browser":"testem-browser ./test/browser/index.js","testem":"testem-both -b=./test/browser/index.js"},"testling":{"files":"test/index.js","browsers":["ie/8..latest","firefox/16..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readmeFilename":"README.md","_id":"observ@0.1.5","dist":{"shasum":"286398028a7a7a2fff75a82d41ef37804c859194","size":2985,"noattachment":false,"key":"/observ/-/observ-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/observ/download/observ-0.1.5.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"raynos","email":""}],"directories":{},"publish_time":1380067493036,"_hasShrinkwrap":false,"_cnpm_publish_time":1380067493036,"_cnpmcore_publish_time":"2021-12-17T20:32:45.704Z"},"0.1.4":{"name":"observ","version":"0.1.4","description":"A observable value representation","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/observ.git"},"main":"index","homepage":"https://github.com/Raynos/observ","contributors":[{"name":"Raynos"}],"bugs":{"url":"https://github.com/Raynos/observ/issues","email":"raynos2@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~1.0.2"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/observ/raw/master/LICENSE"}],"scripts":{"test":"node ./test/index.js","start":"node ./index.js","watch":"nodemon -w ./index.js index.js","travis-test":"istanbul cover ./test/index.js && ((cat coverage/lcov.info | coveralls) || exit 0)","cover":"istanbul cover --report none --print detail ./test/index.js","view-cover":"istanbul report html && google-chrome ./coverage/index.html","test-browser":"testem-browser ./test/browser/index.js","testem":"testem-both -b=./test/browser/index.js"},"testling":{"files":"test/index.js","browsers":["ie/8..latest","firefox/16..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readmeFilename":"README.md","_id":"observ@0.1.4","dist":{"shasum":"c19cf068faf443e3022a71226e73671b57c6058a","size":2903,"noattachment":false,"key":"/observ/-/observ-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/observ/download/observ-0.1.4.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"raynos","email":""}],"directories":{},"publish_time":1380067442167,"_hasShrinkwrap":false,"_cnpm_publish_time":1380067442167,"_cnpmcore_publish_time":"2021-12-17T20:32:45.954Z"},"0.1.3":{"name":"observ","version":"0.1.3","description":"A observable value representation","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/observ.git"},"main":"index","homepage":"https://github.com/Raynos/observ","contributors":[{"name":"Raynos"}],"bugs":{"url":"https://github.com/Raynos/observ/issues","email":"raynos2@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~1.0.2"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/observ/raw/master/LICENSE"}],"scripts":{"test":"node ./test/index.js","start":"node ./index.js","watch":"nodemon -w ./index.js index.js","travis-test":"istanbul cover ./test/index.js && ((cat coverage/lcov.info | coveralls) || exit 0)","cover":"istanbul cover --report none --print detail ./test/index.js","view-cover":"istanbul report html && google-chrome ./coverage/index.html","test-browser":"testem-browser ./test/browser/index.js","testem":"testem-both -b=./test/browser/index.js"},"testling":{"files":"test/index.js","browsers":["ie/8..latest","firefox/16..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readmeFilename":"README.md","_id":"observ@0.1.3","dist":{"shasum":"28d9eaf8599860ff3faa66f6835c4327391b00b6","size":2871,"noattachment":false,"key":"/observ/-/observ-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/observ/download/observ-0.1.3.tgz"},"_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"raynos","email":""}],"directories":{},"publish_time":1373860846185,"_hasShrinkwrap":false,"_cnpm_publish_time":1373860846185,"_cnpmcore_publish_time":"2021-12-17T20:32:46.291Z"},"0.1.2":{"name":"observ","version":"0.1.2","description":"A observable value representation","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/observ.git"},"main":"index","homepage":"https://github.com/Raynos/observ","contributors":[{"name":"Raynos"}],"bugs":{"url":"https://github.com/Raynos/observ/issues","email":"raynos2@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~1.0.2"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/observ/raw/master/LICENSE"}],"scripts":{"test":"node ./test/index.js","start":"node ./index.js","watch":"nodemon -w ./index.js index.js","travis-test":"istanbul cover ./test/index.js && ((cat coverage/lcov.info | coveralls) || exit 0)","cover":"istanbul cover --report none --print detail ./test/index.js","view-cover":"istanbul report html && google-chrome ./coverage/index.html","test-browser":"testem-browser ./test/browser/index.js","testem":"testem-both -b=./test/browser/index.js"},"testling":{"files":"test/index.js","browsers":["ie/8..latest","firefox/16..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readmeFilename":"README.md","_id":"observ@0.1.2","dist":{"shasum":"97183685e28b8963663b4621b1f51c0e95d03ed6","size":2866,"noattachment":false,"key":"/observ/-/observ-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/observ/download/observ-0.1.2.tgz"},"_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"raynos","email":""}],"directories":{},"publish_time":1373860304780,"_hasShrinkwrap":false,"_cnpm_publish_time":1373860304780,"_cnpmcore_publish_time":"2021-12-17T20:32:46.589Z"},"0.1.1":{"name":"observ","version":"0.1.1","description":"A observable value representation","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/observ.git"},"main":"index","homepage":"https://github.com/Raynos/observ","contributors":[{"name":"Raynos"}],"bugs":{"url":"https://github.com/Raynos/observ/issues","email":"raynos2@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~1.0.2"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/observ/raw/master/LICENSE"}],"scripts":{"test":"node ./test/index.js","start":"node ./index.js","watch":"nodemon -w ./index.js index.js","travis-test":"istanbul cover ./test/index.js && ((cat coverage/lcov.info | coveralls) || exit 0)","cover":"istanbul cover --report none --print detail ./test/index.js","view-cover":"istanbul report html && google-chrome ./coverage/index.html","test-browser":"testem-browser ./test/browser/index.js","testem":"testem-both -b=./test/browser/index.js"},"testling":{"files":"test/index.js","browsers":["ie/8..latest","firefox/16..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readmeFilename":"README.md","_id":"observ@0.1.1","dist":{"shasum":"3415a94b7ce8d3a8f905bfde99329607bb8f0f1f","size":2786,"noattachment":false,"key":"/observ/-/observ-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/observ/download/observ-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"raynos","email":""}],"directories":{},"publish_time":1373852161029,"_hasShrinkwrap":false,"_cnpm_publish_time":1373852161029,"_cnpmcore_publish_time":"2021-12-17T20:32:46.811Z"},"0.1.0":{"name":"observ","version":"0.1.0","description":"A observable value representation","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/observ.git"},"main":"index","homepage":"https://github.com/Raynos/observ","contributors":[{"name":"Raynos"}],"bugs":{"url":"https://github.com/Raynos/observ/issues","email":"raynos2@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~1.0.2"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/observ/raw/master/LICENSE"}],"scripts":{"test":"node ./test/index.js","start":"node ./index.js","watch":"nodemon -w ./index.js index.js","travis-test":"istanbul cover ./test/index.js && ((cat coverage/lcov.info | coveralls) || exit 0)","cover":"istanbul cover --report none --print detail ./test/index.js","view-cover":"istanbul report html && google-chrome ./coverage/index.html","test-browser":"testem-browser ./test/browser/index.js","testem":"testem-both -b=./test/browser/index.js"},"testling":{"files":"test/index.js","browsers":["ie/8..latest","firefox/16..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readmeFilename":"README.md","_id":"observ@0.1.0","dist":{"shasum":"665ec453c8c256e26950e2a0a826fda7b0c16b2d","size":2509,"noattachment":false,"key":"/observ/-/observ-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/observ/download/observ-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"raynos","email":""}],"directories":{},"publish_time":1373834597234,"_hasShrinkwrap":false,"_cnpm_publish_time":1373834597234,"_cnpmcore_publish_time":"2021-12-17T20:32:47.044Z"}},"readme":"# observ\n\n[![build status][1]][2] [![NPM version][3]][4] [![Davis Dependency status][9]][10]\n\n[![browser support][11]][12]\n\n[![NPM][13]][14]\n\nA observable value representation\n\n## Example\n\n```js\nvar Observable = require(\"observ\")\n\nvar v = Observable(\"initial value\")\nv(function onchange(newValue) {\n  assert.equal(newValue, \"new value\")\n})\nv.set(\"new value\")\n\nvar curr = v()\nassert.equal(curr, \"new value\")\n```\n\n\n## What about `dominictarr/observable` ?\n\nBoth `observ` & `observable` have the same interface of \n \n - `thing()` gets the value\n - `thing.set(...)` sets the value\n - `thing(function (value) { ... })` listens to the value.\n\nThe way `observ` and `observable` differ is in listening.\n\n - `observ` will ONLY call the listener if `.set()` is invoked.\n - `observable` calls the listener IMMEDIATELY and calls it whenever\n  `.set()` is invoked\n\n`observ` can be used in a similar fashion to `observable` by using\n  `var watch = require(\"observ/watch\")`. You can then just \n  `watch(thing, function (value) { ... })` and it will call the\n  listener immediately\n\nBoth `observ` & `observable` have a computed method with the same\n  interface.\n\n - `require(\"observable\").compute`\n - `require(\"observ/computed\")`\n\n## Example computed\n\n```js\nvar Observable = require(\"observ\")\nvar computed = require(\"observ/computed\")\n\nvar one = Observable(1)\nvar two = Observable(2)\n\nvar together = computed([one, two], function (a, b) {\n  return a + b\n})\n\nassert.equal(together(), 3)\ntwo.set(5)\nassert.equal(together(), 7)\n```\n\n## Docs\n\n```ocaml\ntype Observable<A> := {\n    () => A &\n    (Function<A>) => void,\n    set: (A) => void\n}\n\nobserv := (A) => Observable<A>\n```\n\n\n## Installation\n\n`npm install observ`\n\n## Contributors\n\n - Raynos\n\n## MIT Licenced\n\n  [1]: https://secure.travis-ci.org/Raynos/observ.png\n  [2]: https://travis-ci.org/Raynos/observ\n  [3]: https://badge.fury.io/js/observ.png\n  [4]: https://badge.fury.io/js/observ\n  [5]: https://coveralls.io/repos/Raynos/observ/badge.png\n  [6]: https://coveralls.io/r/Raynos/observ\n  [7]: https://gemnasium.com/Raynos/observ.png\n  [8]: https://gemnasium.com/Raynos/observ\n  [9]: https://david-dm.org/Raynos/observ.png\n  [10]: https://david-dm.org/Raynos/observ\n  [11]: https://ci.testling.com/Raynos/observ.png\n  [12]: https://ci.testling.com/Raynos/observ\n  [13]: http://nodei.co/npm/observ.png\n  [14]: http://nodei.co/npm/observ\n","_attachments":{},"homepage":"https://github.com/Raynos/observ","bugs":{"url":"https://github.com/Raynos/observ/issues","email":"raynos2@gmail.com"}}