{"name":"any-observable","version":"0.2.0","description":"Support any Observable library and polyfill","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/any-observable.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js","implementation.js","loader.js","register.js","register-shim.js","register"],"keywords":["observable","observables","support","polyfill","any","rxjs"],"devDependencies":{"arrify":"^1.0.1","ava":"*","browserify":"^13.0.0","execa":"^0.4.0","karma":"^1.1.0","karma-browserify":"^5.0.4","karma-chrome-launcher":"^1.0.1","karma-mocha":"^1.0.1","karma-phantomjs-launcher":"^1.0.0","mocha":"^2.4.5","phantomjs-prebuilt":"^2.1.7","rxjs":"^5.0.0-beta.9","watchify":"^3.7.0","xo":"*","zen-observable":"^0.3.0"},"browser":{"./register.js":"./register-shim.js"},"xo":{"overrides":[{"files":"browser/tests/**","envs":["mocha"]}]},"gitHead":"6ccd5f822fdb6768e6d402f95ba87d1b118a018f","bugs":{"url":"https://github.com/sindresorhus/any-observable/issues"},"homepage":"https://github.com/sindresorhus/any-observable#readme","_id":"any-observable@0.2.0","_shasum":"c67870058003579009083f54ac0abafb5c33d242","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c67870058003579009083f54ac0abafb5c33d242","tarball":"http://registry-npm.ywwl.com/any-observable/download/any-observable-0.2.0.tgz","integrity":"sha512-JDQTIRCBZjz2eBLZXOf1H4HREhD1sKSCZk+OUKxwY/HEew2DI7tccV30tmSW8o5UcRMVVEoUk+g7/BuEMnct1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEewfvhNfrIlrFFBKF0QyWUyjZn7wfjdNmhsm28rxb8qAiBxheKQrk3d7E0JrgxNVlRs9pT+8FWqAH+MuhTytEuJFQ=="}],"size":3571,"noattachment":false,"key":"/any-observable/-/any-observable-0.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/any-observable-0.2.0.tgz_1467055934393_0.3519887304864824"},"directories":{},"readme":"# any-observable [![Build Status](https://travis-ci.org/sindresorhus/any-observable.svg?branch=master)](https://travis-ci.org/sindresorhus/any-observable)\n\n> Support any [Observable](https://github.com/zenparsing/es-observable) library and polyfill\n\nLike [`any-promise`](https://github.com/kevinbeaty/any-promise). *(Docs are lacking here, so refer to those docs for now)*\n\n## Install\n\n```\n$ npm install any-observable\n```\n\nYou must also install the Observable library you want:\n\n```\n$ npm install zen-observable\n```\n\n## Usage\n\n```js\nconst Observable = require('any-observable'); // Using `zen-observable` since it's installed\n\nObservable.of(1, 2).forEach(value => {\n\tconsole.log(value);\n});\n//=> 1\n//=> 2\n```\n\n## Registration Shortcuts\n\nThis adds the following shortcut registrations:\n\n- `rxjs-min`: Bare bones [RxJs](https://github.com/ReactiveX/rxjs) Observable implementation. See the [RxJs Installation Instructions](http://reactivex.io/rxjs/manual/installation.html) for details on patching additional methods into that implementation.\n- `rxjs`: Same as `rxjs-min`, but adds the somewhat standard `Observable.of` and `Observable.from`.\n- `rxjs-all`: The kitchen sink approach to Observables.\n- `zen`: The [`zen-observable`](https://github.com/zenparsing/zen-observable) implementation.\n\nShortcut registration can be done as follows:\n\n```js\nimport 'any-observable/register/zen';\n```\n\nIt's especially handy for more recent versions of Node.js (and many test runners), that offer a `--require` flag:\n\n```\n$ ava --require=any-observable/register/zen test.js\n```\n\n## Related\n\n- [is-observable](https://github.com/sindresorhus/is-observable) - Check if a value is an Observable\n- [observable-to-promise](https://github.com/sindresorhus/observable-to-promise) - Convert an Observable to a Promise\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-any-observable?utm_source=npm-any-observable&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1467055935561,"_cnpm_publish_time":1467055935561,"dist-tags":{"latest":"0.6.0"}}