Function createConsole

  • Returns an estimate of the default amount of parallelism a program should use.

    Parameters

    • opts: {
          clearConsole?: (() => void);
          formatter?: ((args) => string);
          inspect?: ((args) => string);
          logger?: ((logLevel, args, options) => void);
          printer: ((logLevel, args, options) => void);
      }
      • Optional clearConsole?: (() => void)
          • (): void
          • function to clear the console, e.g. send the ASCII ctrl character

            Returns void

      • Optional formatter?: ((args) => string)
          • (args): string
          • format given values, either by using a format string as first param or otherwise display values in a well readable format, see https://console.spec.whatwg.org/#formatter

            Parameters

            • args: any[]

            Returns string

      • Optional inspect?: ((args) => string)
          • (args): string
          • format js values to be well readable

            Parameters

            • args: any[]

            Returns string

      • Optional logger?: ((logLevel, args, options) => void)
      • printer: ((logLevel, args, options) => void)

    Returns typeof console

Generated using TypeDoc