npm fund
and micropackages
#476
Unanswered
corwin-of-amber
asked this question in
RRFC
Replies: 1 comment
-
npm shows every single package that defines funding information by default, and shouldn't apply any subjective rules to what it shows. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I highly value
npm fund
and its potential impact on open-source development. That is a neat thing to solidify in community-driven code, because today, code is like regulation. The functionality of software tools greatly affects emerging norms.So I am wondering about this issue. Right now, my
npm fund
report looks like this.This is really not such a big deal. But it gives the false impression that I am heavily dependent upon the work of a single author. In fact, these 36 packages are all
left-pad
-like. They are near trivial, and while these packages are downloaded in staggering numbers, due to transitive dependencies, the ingenuity encased in them is minimal. The large number of packages is due to the author's decision to split their code into hundreds of micro-packages. I feel that would skew developers' incentives, as it penalizes those who try to follow "good" design principles, such as grouping related functionality into modules.Suggestions? First, I thought perhaps show something like this:
(along the lines of some of the output from
npm audit
).Also, perhaps (don't shoot me) limit the number of packages listed for a single author? E.g.
I have no idea how NPM would choose which ones to show. The ones actually closest to the root package in the dependency tree? The most recent ones published? I guess a rule that is easy to implement (and is therefore prone to cause fewer faults) is better, but whichever rule is chosen, it would be better than the current behavior, which, most frankly, makes the output of
npm fund
for nearly any project look a bit ridiculous.I am just afraid that users are going to get into the habit of routinely ignoring
npm fund
, if it stays like that. That would benefit none of the developers in the community.Beta Was this translation helpful? Give feedback.
All reactions