Skip to content

Richienb/p-observable

Repository files navigation

p-observable Travis CI Build Status

Promisify an observable by subscribing to it.

NPM Badge

Install

npm install p-observable

Usage

const pObservable = require("p-observable");

(async () => {
	const result = await pObservable(observable);

	console.log(result);
})();

API

pObservable(observable)

observable

Type: observable

The observable to promisify.