rx-stdio
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

This module wraps Node's stdin and stdout into the framework of RxJS5. It was developed using TypeScript 2.3.4.

It defines 2 functions:

  • makeRxStdin(), which returns an Observable yielding the lines read from process.stdin
  • makeRxStdout(), which returns a Subscriber writing what it gets to process.stdout, using console.log()

Usage (see also the included test): makeRxStdin().subscribe(makeRxStdout());

Build (if necessary): tsc

Package Sidebar

Install

npm i rx-stdio

Weekly Downloads

4

Version

1.0.10

License

Apache-2.0

Last publish

Collaborators

  • thomas.hugel