I really like the idea of extracting tiny tasks to separate libraries like David Clark suggests or like master of one-line modules Sindre Sorhus do.
But as user of these small libraries I always struggle with finding the right packages:
- npm has almost 250 000 packages and most of them are bad: no tests, no license, no docs, readme in Chinese, even no code sometimes.
- Many packages do the same thing and even have almost identical code.
- Many packages were abandoned: no updates, author doesn’t use them either.
- People still publish their packages on Bower only.
- Sometimes it’s hard to understand what to search: what the right thing to outsource and what has been done before.
Juho Vepsäläinen has a list of npm search tools but they don’t solve the problem.
This is still an unsolved question for me and I hope we’ll see more sophisticated search tools that will consider many parameters to rank search results: npm installs in the last month, GitHub stars, latest release date, opened issues, test coverage, and so on
JS.coach is very close to that but they only have modules for React, webpack, Babel, and so on
And it will probably decrease the number of almost identical libraries because authors will be able to easily find what’s already available.
Update. Looks like the search problem is pretty much solved by the new npms.io. It’s really awesome!