Socket
Socket
Sign inDemoInstall

listr-verbose-renderer

Package Overview
Dependencies
16
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    listr-verbose-renderer

Listr verbose renderer


Version published
Weekly downloads
1.9M
increased by2.8%
Maintainers
1
Install size
5.70 MB
Created
Weekly downloads
 

Package description

What is listr-verbose-renderer?

The listr-verbose-renderer npm package is a renderer for Listr, a Node.js library that helps you create a list of tasks with a beautiful output. The verbose renderer outputs more detailed information for each task, making it suitable for debugging or when more information about the task execution is needed.

What are listr-verbose-renderer's main functionalities?

Verbose Output

This feature allows for detailed output during the execution of tasks. Each task's start, end, and output are logged to the console, providing a clear and verbose description of what is happening.

const Listr = require('listr');
const VerboseRenderer = require('listr-verbose-renderer');

const tasks = new Listr([
  {
    title: 'Task 1',
    task: () => Promise.resolve('Result of task 1')
  },
  {
    title: 'Task 2',
    task: () => Promise.resolve('Result of task 2')
  }
], { renderer: VerboseRenderer });

tasks.run();

Other packages similar to listr-verbose-renderer

Readme

Source

listr-verbose-renderer Build Status

Listr verbose renderer

Install

$ npm install --save listr-verbose-renderer

Usage

const VerboseRenderer = require('listr-verbose-renderer');
const Listr = require('listr');

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

list.run();

Note: This renderer supports non-TTY environments.

Options

These options should be provided in the Listr options object.

dateFormat

Type: string false
Default: HH:mm:ss

Format of the rendered timestamp. Use the date-fns string format. If false is passed in, the timestamp will be hidden.

License

MIT © Sam Verschueren

Keywords

FAQs

Last updated on 03 Oct 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc