Marak / colors.js

get colors in your node.js console
https://github.com/Marak/colors.js
Other
5.17k stars 446 forks source link

Support multiple arguments #239

Open JanisE opened 6 years ago

JanisE commented 6 years ago

Please, add support for colouring multiple arguments!

For example, I can do this: console.log('Hello world!', 'ssss', 5, {sss: 0});

I would love to be able to this, too: console.log(colors.info('Hello world!', 'ssss', 5, {sss: 0}));

Currently, "colors.js" outputs just the first argument.

I cannot use the "Chalk" package, too, because even though it outputs all arguments, they do not output object content, but object [Object] instead.

Berkmann18 commented 5 years ago

Seems a good feature to me. Regarding that Chalk thing, it seems to me that it's because you're displaying an object as a string hence the [Object object].