travel/admin/node_modules/listr-verbose-renderer
yaosen 242417d45d init... 2024-06-24 11:28:18 +08:00
..
lib init... 2024-06-24 11:28:18 +08:00
node_modules init... 2024-06-24 11:28:18 +08:00
index.js init... 2024-06-24 11:28:18 +08:00
license init... 2024-06-24 11:28:18 +08:00
package.json init... 2024-06-24 11:28:18 +08:00
readme.md init... 2024-06-24 11:28:18 +08:00

readme.md

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