1. listr-update-renderer
Listr update renderer
listr-update-renderer
Package: listr-update-renderer
Created by: SamVerschueren
Last modified: Sun, 19 Jun 2022 12:48:24 GMT
Version: 0.5.0
License: MIT
Downloads: 7,798,062
Repository: https://github.com/SamVerschueren/listr-update-renderer

Install

npm install listr-update-renderer
yarn add listr-update-renderer

listr-update-renderer Build Status

Listr update renderer

Install

$ npm install --save listr-update-renderer

Usage

 const UpdaterRenderer = require('listr-update-renderer');
const Listr = require('listr');

const list = new Listr([
    {
        title: 'foo',
        task: () => Promise.resolve('bar')
    }
], {
    renderer: UpdaterRenderer,
	collapse: false
});

list.run();

Note: This is the default renderer for Listr and doesn't need to be specified.

Options

These options should be provided in the Listr options object.

showSubtasks

Type: boolean

Default: true

Set to false if you want to disable the rendering of the subtasks. Subtasks will be rendered if an error occurred in one of them.

collapse

Type: boolean

Default: true

Set to false if you don't want subtasks to be hidden after the main task succeed.

clearOutput

Type: boolean

Default: false

Clear the output when all the tasks are executed succesfully.

License

MIT © Sam Verschueren

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code