If you need a quick little JavaScript program to test terminal colors and your runtime, Fabrice Bellard put one up in the tests directory of his Micro JS (which does ES5 in under 10kB memory):
https://github.com/bellard/mquickjs/blob/main/tests/mande…