4 ms·
The key thing needed is a standard library which includes 100000 of these tiny one function libraries (has-ansi, color-name).
by oezi 1y ago
The key thing needed is a standard library which includes 100000 of these tiny one function libraries (has-ansi, color-name).
- lynnharry 1y agoI checked has-ansi. What's the reason that this library would exist and be popular? Most of the work is done by the library it imports, ansi-regex and then it just return ansi-regex.test(string), yet it has 5% of the weekly downloads of ansi-regex. ansi-regex also has fewer than 10 lines of code. I don't know anything about the npm ecosystem, what's the benefit of importing these libraries compared to including these code in the project?
- herewulf 1y agoThe benefit is getting your secrets stolen and pointing the blame at someone else? Yeah...