Socket
Socket
Sign inDemoInstall

listr-silent-renderer

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    listr-silent-renderer

Supress Listr rendering output


Version published
Weekly downloads
1.8M
increased by2.17%
Maintainers
1
Install size
3.82 kB
Created
Weekly downloads
 

Package description

What is listr-silent-renderer?

The listr-silent-renderer npm package is a utility renderer for the Listr task runner, which is designed to suppress the output of tasks. This is particularly useful in scenarios where you want to run tasks silently without cluttering the console with logs, unless an error occurs.

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

Silent Task Execution

This feature allows tasks to be executed silently. The code sample demonstrates how to set up a Listr task list with the SilentRenderer, which will not output any logs unless an error occurs.

const Listr = require('listr');
const SilentRenderer = require('listr-silent-renderer');

const tasks = new Listr([
  {
    title: 'Silent task',
    task: () => Promise.resolve('Task completed silently')
  }
], { renderer: SilentRenderer });

tasks.run().catch(err => console.error(err));

Other packages similar to listr-silent-renderer

Readme

Source

listr-silent-renderer Build Status

Suppress Listr rendering output

Install

$ npm install --save listr-silent-renderer

Usage

const SilentRenderer = require('listr-silent-renderer');
const Listr = require('listr');

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

list.run();

License

MIT © Sam Verschueren

Keywords

FAQs

Last updated on 06 Dec 2016

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