diff --git a/readme.md b/readme.md index c77922e..8ad1365 100644 --- a/readme.md +++ b/readme.md @@ -120,6 +120,8 @@ A `task` can also return an `Observable`. The thing about observables is that it task. Please note that only the last line of the output is rendered. ```js +const {Observable} = require('rxjs'); + const tasks = new Listr([ { title: 'Success', @@ -144,6 +146,8 @@ const tasks = new Listr([ ]); ``` +You can use the `Observable` package you feel most comfortable with, like [RxJS](https://www.npmjs.com/package/rxjs) or [zen-observable](https://www.npmjs.com/package/zen-observable). + ### Streams It's also possible to return a [`ReadableStream`](https://nodejs.org/api/stream.html#stream_class_stream_readable). The stream will be converted to an `Observable` and handled as such.