3 ms·
every package can be a one line package if you minify it. lines of code as a metric for code quality is always relative. The fact that this is a one line packag
by janpot 6y ago
every package can be a one line package if you minify it. lines of code as a metric for code quality is always relative.
The fact that this is a one line package has nothing to do with the outcome. a one-line code change in a 5000 line dependency could just as much have messed up create-react-app. The size is irrelevant.
- xyst 6y agohow about "single function" instead?
- turnipla 6y agoThis is correct. Many tools are split into multiple packages for — hear me out — convenience. I regularly extract features from my apps into new npm packages. This way they can be reused by other apps. Troglodytes can keep copy-pasting code between apps while npm users publish once and update everywhere.