New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github-user-language-stats

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-user-language-stats - npm Package Compare versions

Comparing version 1.2.2 to 1.3.0

9

bin/gh-lang-stat.js

@@ -25,4 +25,11 @@ #!/usr/bin/env node

var baseURL = 'https://api.github.com';
var axios = require('axios');
axios.get('https://api.github.com/users/' + username + '/repos', config).then(function (repos) {
axios.get(baseURL + '/user', config).then(function (user) {
if (user.data.login === username) {
return axios.get(baseURL + '/user/repos', config);
} else {
return axios.get(baseURL + '/users/' + username + '/repos', config);
}
}).then(function (repos) {
return axios.all(repos.data.filter(function (repo) {

@@ -29,0 +36,0 @@ return !repo.fork;

2

package.json
{
"name": "github-user-language-stats",
"version": "1.2.2",
"version": "1.3.0",
"description": "Show GitHub user's programming language stats",

@@ -5,0 +5,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc