28 ms·
I just want to add, colors is pretty poorly designed package. It modifies the prototype of String! This is a well known anti-pattern (yes, there's a safe mode
by asiachick 5y ago
I just want to add, colors is pretty poorly designed package.
It modifies the prototype of String! This is a well known anti-pattern (yes, there's a safe mode you can opt into but it shouldn't have the first mode at all)
It also has a ridiculous "theme" feature that can be replaced by the same amount of standard JS. Meaning you gain nothing by using the theme feature that you couldn't do yourself except you make your code more dependent and more likely to break/need updating/etc since you added more dependencies to achieve something where none was needed.
It does tries to do too much by auto detecting whether or not to emit colors and provides no way to tell it what you actually want (since it's guess may be wrong)