Skip to content

createPrinter

createPrinter(objectFormatter?, arrayFormatter?, dateFormatter?): Printer

Factory function to create a Printer with optional overrides for object, array, and date formatting configurations.

Partial<ObjectFormatterConfig>

Overrides for object formatting.

Partial<ArrayFormatterConfig>

Overrides for array formatting.

Partial<DateFormatterConfig>

Overrides for date formatting.

Printer

A new Printer instance or the defaultPrinter if no overrides provided.