Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
git-activity-stats
Advanced tools
Grab an contributions calendar from a github profil page and extact stats from it
Grab an Github contributions calendar and extact stats from it. Based on GithubStats
## Features
Extract :
npm install git-activity-stats
let gitactivitystats = require('git-activity-stats');
gitactivitystats.getContributions('valcol', function(error, contrib){
// Contributions array, day as index, number of commit as value
let contributions = contrib.contributions;
//First date of the contributions calendar
let startDate = contrib.startDate;
//Max. number of contributions per day
let max = gitactivitystats.getMax(contributions);
//Mean of the contributions
let mean = gitactivitystats.getMean(contributions);
//All streaks
let streaks = gitactivitystats.getStreaks(contributions, startDate);
for (let i=0;i<streaks.length;i++){
console.log("Start date : "+streaks[i].startDate);
console.log("End date : "+streaks[i].endDate);
console.log("Duration : "+streaks[i].length);
}
//The longest streak(s)
let maxStreaks = gitactivitystats.getMaxStreak(contributions);
//Current streak
let currentStreak = gitactivitystats.getCurrentStreak(contributions);
//Get quartile boundaries, with the index as the quartile number
//and the value as the upper bound of the quartile (inclusive)
let quartileBoundaries = gitactivitystats.getQuartileBoundaries(contributions);
});
npm test
git-actitity-stats is released under the MIT License.
FAQs
Grab an contributions calendar from a github profil page and extact stats from it
The npm package git-activity-stats receives a total of 0 weekly downloads. As such, git-activity-stats popularity was classified as not popular.
We found that git-activity-stats demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.