How to use the any-observable.merge function in any-observable

To help you get started, we’ve selected a few any-observable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ionic-team / stencil / scripts / np / index.js View on Github external
const exec = (cmd, args, opts) => {
	// Use `Observable` support if merged https://github.com/sindresorhus/execa/pull/26
	const cp = execa(cmd, args, opts);

	return Observable.merge(
		streamToObservable(cp.stdout.pipe(split()), {await: cp}),
		streamToObservable(cp.stderr.pipe(split()), {await: cp})
	).filter(Boolean);
};

any-observable

Support any Observable library and polyfill

MIT
Latest version published 4 years ago

Package Health Score

70 / 100
Full package analysis

Popular any-observable functions