I (re-)published a simple package I forked written in Go which does nothing else but determinating your terminal’s ability to display colors and to what color depth level.