
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@codersrank/skills-chart
Advanced tools
CodersRank Skills Chart Widget is a web component that allows you easily integrate nice looking skills chart from your CodersRank profile to your personal website:
Widget script available through NPM:
npm i @codersrank/skills-chart --save
After installation you need to import and register web component:
import CodersRankSkillsChart from '@codersrank/skills-chart';
// register web component as <codersrank-skills-chart> element
window.customElements.define('codersrank-skills-chart', CodersRankSkillsChart);
Widget can also be downloaded or linked directly from CDN:
<!-- replace x.x.x with actual version -->
<script src="https://unpkg.com/@codersrank/skills-chart@x.x.x/codersrank-skills-chart.min.js"></script>
In this case it is not required to register web component, it is already registered as <codersrank-skills-chart>
element.
As it is a web component the usage is pretty simple, just add widget HTML tag with your CodersRank username
<codersrank-skills-chart username="YOUR_USERNAME"></codersrank-skills-chart>
Widget supports following properties as HTML element attributes:
Name | Type | Default | Description |
---|---|---|---|
username | string | Your CodersRank username | |
labels | boolean | false | Display chart labels (chart axis with dates) |
legend | boolean | false | Display legend below the chart |
tooltip | boolean | false | Enables tooltip with number of activities per day |
skills | string | Allows to specify skills to display in chart. For example skills="JavaScript, Vue, CSS" | |
svg-width | number | 640 | Render width of chart's SVG element. Ideally should match actual chart width |
svg-height | number | 320 | Render height of chart's SVG element. Ideally should match actual chart height |
For example, to enable labels, legend and tooltip:
<codersrank-skills-chart
username="YOUR_USERNAME"
labels
legend
tooltip
></codersrank-skills-chart>
It is possible to customize widget colors with CSS Custom Properties (CSS Variables) by setting them directly on the widget element with style attribute or in CSS.
There are following CSS Custom Properties are available:
Property | Value |
---|---|
--font-family | Open Sans, Helvetica Neue, Helvetica, Arial, sans-serif |
--svg-width | 100% |
--svg-height | auto |
--axis-bg-color | rgba(0, 0, 0, 0.35) |
--hidden-area-color | #ddd |
--label-text-color | inherit |
--label-font-size | 10px |
--label-font-weight | 500 |
--legend-text-color | inherit |
--legend-disabled-text-color | #ccc |
--legend-font-size | 14px |
--preloader-color | #72a0a8 |
--tooltip-font-size | 12px |
--tooltip-total-font-size | 16px |
--tooltip-total-font-weight | bold |
Yes please! See the contributing guidelines for details.
This project is licensed under the terms of the MIT license.
FAQs
CodersRank skills chart widget
The npm package @codersrank/skills-chart receives a total of 293 weekly downloads. As such, @codersrank/skills-chart popularity was classified as not popular.
We found that @codersrank/skills-chart demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.