# @lihbr/listr-update-renderer

> Listr update renderer

Latest version **0.5.3** (published 2022-11-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lihbr/listr-update-renderer
pnpm add @lihbr/listr-update-renderer
yarn add @lihbr/listr-update-renderer
bun add @lihbr/listr-update-renderer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.3 |
| Published | 2022-11-28 |
| First published | 2021-03-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 8 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sam Verschueren |
| Maintainers | lihbr |
| Keywords | listr, update, renderer, ora, logupdate, rendering |

## Links

- npm: https://www.npmjs.com/package/@lihbr/listr-update-renderer
- Repository: https://github.com/lihbr/listr-update-renderer
- Homepage: https://github.com/lihbr/listr-update-renderer#readme
- Issues: https://github.com/lihbr/listr-update-renderer/issues
- npm.io page: https://npm.io/package/@lihbr/listr-update-renderer

## Dependencies (8)

- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [figures](https://npm.io/package/figures.md) ^2.0.0
- [log-update](https://npm.io/package/log-update.md) ^2.3.0
- [strip-ansi](https://npm.io/package/strip-ansi.md) ^3.0.1
- [log-symbols](https://npm.io/package/log-symbols.md) ^4.1.0
- [cli-truncate](https://npm.io/package/cli-truncate.md) ^0.2.1
- [indent-string](https://npm.io/package/indent-string.md) ^3.0.0
- [elegant-spinner](https://npm.io/package/elegant-spinner.md) ^1.0.1

## Recent versions

- 0.5.3 (latest) — 2022-11-28
- 0.5.2 — 2022-11-25
- 0.5.1 — 2021-03-20
- 0.5.0 — 2021-03-20

## README

> Lucie: This is a quick fork of [listr-update-renderer](https://github.com/SamVerschueren/listr-update-renderer) that removes the initial indentation for styling purpose and makes `task.output` more meaningful. All credit goes to [Sam Verschueren](https://github.com/SamVerschueren)

# listr-update-renderer [![Build Status](https://travis-ci.org/SamVerschueren/listr-update-renderer.svg?branch=master)](https://travis-ci.org/SamVerschueren/listr-update-renderer)

> [Listr](https://github.com/SamVerschueren/listr) update renderer

<img src="screenshot.gif" />


## Install

```
$ npm install --save listr-update-renderer
```


## Usage

```js
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](https://github.com/SamVerschueren/listr) and doesn't need to be specified.


## Options

These options should be provided in the [Listr](https://github.com/SamVerschueren/listr) options object.

### showSubtasks

Type: `boolean`<br>
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`<br>
Default: `true`

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

### clearOutput

Type: `boolean`<br>
Default: `false`

Clear the output when all the tasks are executed succesfully.


## Related

- [listr](https://github.com/SamVerschueren/listr) - Terminal task list
- [listr-verbose-renderer](https://github.com/SamVerschueren/listr-verbose-renderer) - Listr verbose renderer
- [listr-silent-renderer](https://github.com/SamVerschueren/listr-silent-renderer) - Suppress Listr rendering output


## License

MIT © [Sam Verschueren](https://github.com/SamVerschueren)


---

<div align="center">
	<b>
		<a href="https://tidelift.com/subscription/pkg/npm-listr-update-renderer?utm_source=npm-listr-update-renderer&utm_medium=referral&utm_campaign=enterprise&utm_term=repo">Get professional support for this package with a Tidelift subscription</a>
	</b>
	<br>
	<sub>
		Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
	</sub>
</div>

---
_Source: https://npm.io/package/@lihbr/listr-update-renderer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
