Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
contributions
Advanced tools
A TypeScript library for the GitHub Contribution Graph.
Get the contributions for a GitHub user, by name:
const contributions = await Contributions.forUser('ethomson');
Get the days in the contribution graph:
const days = contributions.getDays();
You can iterate and inspect the data in each day:
Get the date, a string in YYYY-MM-DD
format:
day.getDate();
Get the number of contributions on that day:
day.getCount();
Get the contribution intensity for the day, which is the number 0-4, where 0 indicates no contributions, and 4 is the most contributions. This maps to the color used to indicate the contribution count for the graph.
day.getIntensity();
Get the color, a string in hexadecimal #xxxxxx
format, that GitHub used for displaying this day in the contribution graph (this maps directly to the "intensity" level for the day:
Add the contributions
package (eg, npm install contributions
). Then:
const { Contributions } = require('contributions')
const contributions = await Contributions.forUser('ethomson');
const days = contributions.getDays();
for (let day of days) {
console.log(`${day.getDate()}: ${day.getIntensity()}`);
}
contributions is released under the MIT license.
See the license file for the full license text.
FAQs
GitHub Contribution Count
We found that contributions demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.