All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.exoquery.Base.kt Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package io.exoquery

import io.exoquery.fansi.Attrs
import io.exoquery.fansi.Color
import io.exoquery.pprint.PPrinter
import io.exoquery.pprint.PPrinterConfig

fun pprint(
  value: Any?,
  defaultWidth: Int = 100,
  defaultHeight: Int = 500,
  defaultIndent: Int = 2,
  defaultEscapeUnicode: Boolean = false,
  defaultShowFieldNames: Boolean = true,
  colorLiteral: Attrs = Color.Green,
  colorApplyPrefix: Attrs = Color.Yellow,
  showGenericForCollections: Boolean = true
) = PPrinter(
  PPrinterConfig(
    defaultWidth,
    defaultHeight,
    defaultIndent,
    defaultEscapeUnicode,
    defaultShowFieldNames,
    colorLiteral,
    colorApplyPrefix,
    showGenericForCollections
  )
)(value)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy