We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 080788a commit a0d9c5aCopy full SHA for a0d9c5a
src/npm.js
@@ -93,7 +93,9 @@ export async function getDownloads(pkgs) {
93
: 0;
94
const downloadsRatio = (downloadsLast30Days / totalNpmDownloads) * 100;
95
const popular = downloadsRatio > c.popularDownloadsRatio;
96
- const downloadsMagnitude = downloadsLast30Days.toString().length;
+ const downloadsMagnitude = downloadsLast30Days
97
+ ? downloadsLast30Days.toString().length
98
+ : 0;
99
100
return {
101
downloadsLast30Days,
0 commit comments