Open victorb opened 8 years ago
Chalk FTW
So, I've checked out both cli-color
and chalk
. Both seems good but introduces many dependencies compared to colors
. One reason why colors
have been my go-to module when it comes to colors in the terminal, is because of the simplicity and zero dependencies.
So unless someone else can recommend another zero dependency module instead of colors, I'll close this and live with colors.
@VictorBjelkholm all of Chalk's deps are maintained by the same author, and are like 7kb or less. Not a biggie.
I would consider extending the String prototype a much more concerning proposition than a few tiny deps by the same (trusted) author.
The network requests are the overhead really, and I would prefer to have a small number of tiny dependencies rather that a big number of them
Yeah, I'm not relying on any of the String prototype stuff that colors provide, although it does seem like I'm missusing it, and should use require('colors/safe')
instead of just require('colors')
. https://github.com/Marak/colors.js/blob/master/lib/index.js#L8
Okay, cool. Up to you, man. But thats my two cents. :smile:
From: https://github.com/sindresorhus/awesome-nodejs/pull/477#event-606502245