github-user-language-stats
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -11,3 +11,3 @@ #!/usr/bin/env node | ||
console.log('usage: GITHUB_API_ACCESS_TOKEN=<your token> ' + commandName + ' <github username>'); | ||
process.exit(1); | ||
process.exit(process.argv.length < 3 ? 1 : 0); | ||
} | ||
@@ -28,3 +28,5 @@ | ||
axios.get('https://api.github.com/users/' + username + '/repos', config).then(function (repos) { | ||
return axios.all(repos.data.map(function (repo) { | ||
return axios.all(repos.data.filter(function (repo) { | ||
return !repo.fork; | ||
}).map(function (repo) { | ||
return axios.get(repo.languages_url, config); | ||
@@ -31,0 +33,0 @@ })); |
{ | ||
"name": "github-user-language-stats", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Show GitHub user's programming language stats", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -9,2 +9,2 @@ # github-user-language-stats | ||
 | ||
 |
3541
37