npm.io
1.0.10 • Published 8 years ago

rx-stdio

Licence
Apache-2.0
Version
1.0.10
Deps
2
Vulns
0
Weekly
0

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

Keywords