sharkdp/bat

How to use as a module ?

Aviksaikat opened this issue · 2 comments

How can we use bat as a module and use it for colourful logging and terminal outputs from rust programs?

https://github.com/sharkdp/bat?tab=readme-ov-file#development

If you want to build an application that uses bats pretty-printing features as a library, check out the the API documentation. Note that you have to use either regex-onig or regex-fancy as a feature when you depend on bat as a library.

Do we have to create a new instance of PrettyPrinter every time we want to print out something?