Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
github-contribution-graph
Advanced tools
Readme
display your data visually with a github like contribution graph.
npm i github-contribution-graph
or
yarn add github-contribution-graph
import drawContributionGraph from "github-contribution-graph";
// for toottip css
// <link rel="stylesheet" href="https://unpkg.com/github-contribution-graph/src/style.css" crossorigin="anonymous">
// or
// import "github-contribution-graph/src/style.css";
drawContributionGraph({
data,
ssr: false,
config: {
graphMountElement: "#app",
},
});
drawContributionGraph(data, ssr, config)
Type: Object
data to feed the graph, below is an example of the accepted format of the object
const data = {
2023: [
{
done: 12,
not_done: 4, // it's fine if you keep not_done as 0
date: "2023-06-07",
},
{
done: 3,
not_done: 6,
date: "2023-02-25",
},
],
2022: [
{
done: 7,
not_done: 3,
date: "2022-08-01",
},
],
};
Type: boolean (defaults to false
)
set to true if you want to use this package in server side rendering
Type: object children types : string or number
(defaults to 723
)
width of the contribution graph
(defaults to 113
)
height of the contribution graph
(defaults to body
)
the css selector of the element to which the contribution graph to be appended
(defaults to standard
)
theme of the graph (check in utils/themes.js for available themes)
FAQs
display your data visually with a github like contribution graph
The npm package github-contribution-graph receives a total of 4 weekly downloads. As such, github-contribution-graph popularity was classified as not popular.
We found that github-contribution-graph 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.