{"name":"observable-to-promise","version":"0.1.0","description":"Convert an Observable to a Promise","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/observable-to-promise"},"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","promise","promises","convert"],"dependencies":{"is-observable":"^0.1.0","symbol-observable":"^0.1.0"},"devDependencies":{"ava":"*","is-promise":"^2.1.0","xo":"*","zen-observable":"^0.1.6"},"gitHead":"1a1adf1cb4e99f4a7ea166df147e04c7276f20ad","bugs":{"url":"https://github.com/sindresorhus/observable-to-promise/issues"},"homepage":"https://github.com/sindresorhus/observable-to-promise","_id":"observable-to-promise@0.1.0","_shasum":"118157981d7a9104135b6663b5506b5713659527","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"118157981d7a9104135b6663b5506b5713659527","tarball":"http://registry-npm.ywwl.com/observable-to-promise/download/observable-to-promise-0.1.0.tgz","integrity":"sha512-eKihITNEHV+2YEZDqG8S5cuDwr6ut0sw2qMZ9ijLql65IWeismvxJC54ctVV4H+MyjG4NJyxL5BoCbio15Zy+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFSofOyi7f+zgSpmq2pe9sPWTco/npxM3axDvmfDkzIFAiA6W0SgrgGW0c7CRtCJoOyDZCaub01StP5RqtHj9pUnwA=="}],"size":1557,"noattachment":false,"key":"/observable-to-promise/-/observable-to-promise-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# observable-to-promise\n\n> Convert an [Observable](https://github.com/tc39/proposal-observable) to a Promise\n\n## Install\n\n```sh\nnpm install observable-to-promise\n```\n\n## Usage\n\n```js\nimport observableToPromise from 'observable-to-promise';\n\nconst promise = observableToPromise(Observable.of(1, 2));\n\nconsole.log(await promise);\n//=> [1, 2]\n```\n\n## Related\n\n- [is-observable](https://github.com/sindresorhus/is-observable) - Check if a value is an Observable\n","publish_time":1447941426993,"_cnpm_publish_time":1447941426993,"dist-tags":{"latest":"2.0.0"}}