Compare commits

..

No commits in common. "master" and "v1.0.4" have entirely different histories.

3 changed files with 2 additions and 6 deletions

View File

@ -35,7 +35,3 @@ You're *very* npm.
```bash ```bash
npm install --global how-npm-am-i npm install --global how-npm-am-i
``` ```
# How I built this
See <https://coolaj86.com/articles/how-cool-you-are-on-npm/>

View File

@ -63,7 +63,7 @@ hnai
function tabularize(downloads) { function tabularize(downloads) {
console.info(''); console.info('');
var maxLen = 0; var maxLen = 0;
var maxCount = "Downloads".length; var maxCount = 0;
downloads.sort(function(a, b) { downloads.sort(function(a, b) {
maxLen = Math.max(a.package.length, b.package.length, maxLen); maxLen = Math.max(a.package.length, b.package.length, maxLen);
maxCount = Math.max(a.downloads.toLocaleString().length, b.downloads.toLocaleString().length, maxCount); maxCount = Math.max(a.downloads.toLocaleString().length, b.downloads.toLocaleString().length, maxCount);

View File

@ -1,6 +1,6 @@
{ {
"name": "how-npm-am-i", "name": "how-npm-am-i",
"version": "1.0.5", "version": "1.0.3",
"description": "See how many downloads you get on npm each month, across all your packages", "description": "See how many downloads you get on npm each month, across all your packages",
"homepage": "https://git.coolaj86.com/coolaj86/how-npm-am-i.js", "homepage": "https://git.coolaj86.com/coolaj86/how-npm-am-i.js",
"main": "index.js", "main": "index.js",