Skip to content

MakotoE/prettier-print

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

33 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Latest version Documentation

I'm not a fan of the built-in "pretty-printed" debug output (format string "{:#?}") because they don't look so pretty to me. That is why I made this crate.

prettier-print contains two modules. The first is prettier_printer which adds rainbows and stars to the debug string.

Drake meme

// How to use PrettierPrinter
use prettier_print::prettier_printer::PrettierPrinter;

let variable = 1;
println!("{}", PrettierPrinter::default().print(&variable));

sparkles prints the debug string, and then runs game of life on top of the printed string.

sparkles.mp4
use prettier_print::sparkles::Sparkles;

let stdout = std::io::stdout();
let variable = 1;
Sparkles::new(stdout.lock()).run(&variable).unwrap();

About

🌈 Prettier-printed debug strings 🌈

Resources

License

Stars

Watchers

Forks

Languages