When we publish a package to npm, it will show us some data such as popularity, quality, and maintenance in the search page (The example image is blow). I just wonder how npm calculates the quality? Really appreciate if someone can give some clue.
You can see this if you look on the search page. See the right side of search page: npm search for "react"
Edit, january 2020: NPM does not show "Powered by npms.io" anymore. I don't know if this is still accurate.
Original answer
npm shows these graphs in search results, but they do not calculate these values themselves. If you look below the search results, you'll see "Powered by npms.io".
According to this service, they don't inspect the code, but use the following metrics to measure code quality:
.gitignore
and friends?> 1.x.x
)? Is it deprecated?Source: https://npms.io/about
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With