{"name":"any-observable","version":"0.1.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"],"keywords":["observable","observables","support","polyfill","any"],"devDependencies":{"ava":"*","xo":"*","zen-observable":"^0.2.1"},"gitHead":"3830fd00b29d2e7d5321e19b9963eb7f79038030","bugs":{"url":"https://github.com/sindresorhus/any-observable/issues"},"homepage":"https://github.com/sindresorhus/any-observable#readme","_id":"any-observable@0.1.0","_shasum":"6a0e859d9c24fc398ed1de6ab00c8d3f4d10612c","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6a0e859d9c24fc398ed1de6ab00c8d3f4d10612c","tarball":"http://registry-npm.ywwl.com/any-observable/download/any-observable-0.1.0.tgz","integrity":"sha512-Jq9VWIya5XsN16Ydwx3YPkK8/nrg8R5tN4izMQQzzqWjs5CrAZbj3lHL9IMhrwgakxnjwcXutv0kF8I6jloxBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGvRYzIhybUamy69iLtiikDY7YNunuHCMvCXOgvd1fPIAiBWKFKKyE78tZ3cR0FMm/IqzPvLKBT3gIJeSqVLO2XlxA=="}],"size":1524,"noattachment":false,"key":"/any-observable/-/any-observable-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/any-observable-0.1.0.tgz_1461749656707_0.3174991032574326"},"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":1461749657115,"_cnpm_publish_time":1461749657115,"dist-tags":{"latest":"0.6.0"}}