listr is a terminal task list available via the npm package manager. listr maintainer and creator, Sam Verschueren, maintains listr via the Tidelift Subscription. listr is used by more than 165,000 repositories and over 1,000 other projects depend on listr.
listr does the following:
taskcan return different values. If a
taskreturns, it means the task was completed successfully. If a task throws an error, the task failed.
taskcan also be async by returning a
Promise. If the promise resolves, the task completed successfully, it it rejects, the task failed.
taskcan also return an
Observable. The thing about observables is that it can emit multiple values and can be used to show the output of the task.
stream. The stream will be converted to an
Observableand handled as such.
skipfunction to determine whether a task can be skipped.
You can learn more about listr on the project repo.