listr-verbose-renderer
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -6,2 +6,7 @@ 'use strict'; | ||
exports.log = (options, output) => { | ||
if (options.dateFormat === false) { | ||
console.log(output); | ||
return; | ||
} | ||
const timestamp = format(new Date(), options.dateFormat); | ||
@@ -8,0 +13,0 @@ |
{ | ||
"name": "listr-verbose-renderer", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Listr verbose renderer", | ||
@@ -42,6 +42,3 @@ "license": "MIT", | ||
"xo": "*" | ||
}, | ||
"xo": { | ||
"esnext": true | ||
} | ||
} |
@@ -42,6 +42,6 @@ # listr-verbose-renderer [![Build Status](https://travis-ci.org/SamVerschueren/listr-verbose-renderer.svg?branch=master)](https://travis-ci.org/SamVerschueren/listr-verbose-renderer) | ||
Type: `string`<br> | ||
Type: `string` `false`<br> | ||
Default: `HH:mm:ss` | ||
Format of the rendered timestamp. Use the [date-fns string format](https://date-fns.org/docs/format). | ||
Format of the rendered timestamp. Use the [date-fns string format](https://date-fns.org/docs/format). If `false` is passed in, the timestamp will be hidden. | ||
@@ -48,0 +48,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4886
64