Skip to main content
Module

x/progress/time.ts>prettyTimeOptions

ProgressBar in terminal for deno
Go to Latest
interface prettyTimeOptions
import { type prettyTimeOptions } from "https://deno.land/x/progress@v1.3.9/time.ts";

prettyTime options

  • withSpaces Whether to use spaces to separate times, 1d2h3m5s or 1d 2h 3m 5s, default false
  • toFixedVal value pass to toFixed for seconds, default 1
  • longFormat Whether to use a long format, default false, 1d2h3m5s or 1days 2hours 3minutes 5seconds

Properties

optional
withSpaces: boolean
optional
toFixedVal: number
optional
longFormat: boolean