Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
dmn-elex-balance-of-power
Advanced tools
Chart module for balance of power bars.
$ npm install --save dmn-elex-balance-of-power
This module uses ES6 syntax. To use as a pre-compiled module, you'll need a compiler like babel.
In the client, include the global-chart.js
bundle, which defines a global chart object, BalanceOfPower
:
<script src="some/path/to/global-chart.js"></script>
To use as a module, simply import the chart object:
import BalanceOfPower from 'dmn-elex-balance-of-power';
The chart object has two methods, one to create the chart, initially, and another to update it.
var myChart = new BalanceOfPower();
// create needs a selection string and prefectched data
myChart.create('#chart', data);
// update needs only new data
myChart.update(newData);
//resizing when only the div has changed
myChart.resize('#chart');
To apply this chart's default styles when using SCSS, simply define the variable $BalanceOfPower-container
to represent the ID or class of the chart's container(s) and import the _chart-styles.scss
partial.
$BalanceOfPower-container: '#chart';
@import 'path/to/dmn-elex-balance-of-power/src/scss/_chart-styles';
Write your chart code in chart.js
and add custom styles to _chart-styles.scss
.
Then, just run gulp:
$ gulp
Or to minimize javascript before publishing:
$ gulp --production
FAQs
Chart module for balance of power bars.
The npm package dmn-elex-balance-of-power receives a total of 0 weekly downloads. As such, dmn-elex-balance-of-power popularity was classified as not popular.
We found that dmn-elex-balance-of-power 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.