Line Observable RxJs
Convert an input stream to observable of lines
Usage Example
We have the following script:
// script.jsconst getLinesFromStream =
Run the script:
printf 'abc\ndef\nghi' | node script.js
Expected Output:
line> abc
line> def
line> ghi
done.