rafeca / prettyjson

Package for formatting JSON data in a coloured YAML-style, perfect for CLI output
http://rafeca.com/prettyjson
MIT License
479 stars 55 forks source link

No color in nodejs anymore #29

Open maeishoj opened 7 years ago

maeishoj commented 7 years ago

Hi there,

Why is it that all of the sudden the colors are gone in the terminal printing from my nodejs app?

Anyone experiencing this?

disovi commented 7 years ago

The problem is in colors.js it doesn't work when the process is called from another process (for example when I run mocha from gulp). I've replaced colors/safe with chalk and it works like a charm. @rafeca Is it possible to replace colors.js dependency on chalk? It has same interface as colors/safe.

saikojosh commented 7 years ago

+1