{"name":"any-observable","version":"0.5.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":">=8"},"scripts":{"test":"xo && ava"},"keywords":["observable","observables","support","polyfill","any","rxjs"],"devDependencies":{"arrify":"^2.0.1","ava":"^1.4.1","browserify":"^16.2.0","execa":"^1.0.0","karma":"^4.1.0","karma-browserify":"^6.0.0","karma-chrome-launcher":"^2.2.0","karma-mocha":"^1.3.0","mocha":"^6.1.4","rxjs":"^6.5.3","watchify":"^3.11.0","xo":"^0.24.0","zen-observable":"^0.8.8"},"browser":{"./register.js":"./register-shim.js"},"xo":{"overrides":[{"files":"browser/tests/**","envs":["mocha"]}]},"gitHead":"d8f6d406bc227e29ed3b9a6a2707908a014be971","bugs":{"url":"https://github.com/sindresorhus/any-observable/issues"},"homepage":"https://github.com/sindresorhus/any-observable#readme","_id":"any-observable@0.5.0","_nodeVersion":"10.16.3","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-GnS7zaS5yBufhXeqfROuyt//AlqrN6dNHTN0Ex6vy22cIyUdeJY46rll8WLVmbV2yV2DEEl3HjspPLVLS79YZw==","shasum":"2dc6af0382b67cfd1a49e1f65e515196d4e32d38","tarball":"http://registry-npm.ywwl.com/any-observable/download/any-observable-0.5.0.tgz","fileCount":12,"unpackedSize":8433,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiF2KCRA9TVsSAnZWagAAWwMP/RcfiUMGHyl8RV6CXZew\nMwCiHRsapDbVzeAta6VHKE8cT98eDXs7wYdmf7/TA641/rNozcxcB5gcxDWE\nT+yB+DprzkC7pBsoa38308khCGdw8iJOBzo3HKDmN0gnj7KPuEF6fym64tkX\niiRf0/FOe5eAZ3MJCP2pFU4y9pscwqqrzBtAdt1PVwXjUZHlpRZwr0WEt2dt\nTpw+RcgPk7LbEilHHIO0giVX7+qKcUs4pMhC9y609sq/cwauZZ0igh9z0VLV\nbJv/BtPs0By1d1jFTJ2jwAHd5ibbHZMgYn6n559Hfd+v6mQQztzH5cfoqRT7\n/Xj9wYQbQA/PC0b7wuf9U4b18WNBN6ekacDoRnxwNer0GHdQvNddOjDqNXWK\n/oz9BUaQaBpgPCkGNsayHLU9dCWPJNCxfiPMfp5/zjCnQbNULFaktjHozuFn\n4l9BjIN+FH0mehHghZP8JgldBBzJbYpIimbRVWEtMfFf96m51AZ1WxFNOiwb\nGqMEVAZmOYkijquG+bWGhWhlEAnflGTfrfcLiRBqA81W1ILU9kg3uLzaUq28\nNtbgW5hBE3DEypDmaLyRsLfq8JEXqvYVzH4GbPpH6rAjwYgr1bPaXju/4+lu\nSueuDoBOC+CdGCjEUq/f5h7UuhZ6CSt7RbWY87KUvfx37iXsynUrH3ssuq0r\nZU0Y\r\n=rByC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHisEn1l+9wvEoXx+EF2fKpEi1Oyx7TBDBWKgwqGUrvmAiEA5b4eixG1dKB0ZkPD+XdnCxd3xXtwskqNL9739ggLJs4="}],"size":3715,"noattachment":false,"key":"/any-observable/-/any-observable-0.5.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/any-observable_0.5.0_1569217930179_0.5182698057857529"},"_hasShrinkwrap":false,"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":1569217930324,"_cnpm_publish_time":1569217930324,"dist-tags":{"latest":"0.6.0"}}