DEV Community

Discussion on: 10 useless NPM Package with millions of downloads

Collapse
 
jyotishman profile image
Jyotishman Saikia

Hi Akim! why dont you use the css text-transform property for this? Any corner case?

Collapse
 
miketalbot profile image
Mike Talbot ⭐

Case insensitive array searching? List searching?

Thread Thread
 
jyotishman profile image
Jyotishman Saikia

toLowerCase() would work here right?

Thread Thread
 
miketalbot profile image
Mike Talbot ⭐

Same issue as the comment above. Might need to do it for a map. I have these functions defined for that purpose. Though I agree, I wouldn't import a package for a 3 line function :)

Thread Thread
 
jyotishman profile image
Jyotishman Saikia

thats my whole point is. anyways thanks for your feedback.

Collapse
 
mcmath profile image
mcmath

CSS text-transform is a good option, but it only works in CSS. In a non-browser environment, that won't work. I'm not saying there are not often better alternatives to these packages. But all of them are useful in certain (possibly rare) circumstances.