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.
chart2music
Advanced tools
Chart2Music turns charts into music so the blind can hear data.
Include the following script tag on your page:
<script src="https://cdn.jsdelivr.net/npm/chart2music"></script>
On your page, you will also need your chart. For the sake of simplicity, here's an example with an image and an element for screen reader text:
<img src="mychart.png" id="MyChart" />
<div id="screenReaderText"></div>
Now, in your javascript, you can start a new instance of Chart2Music. In this example, we will include a simple bar chart, and point it to the img element above.
const {err} = c2mChart({
type: "bar",
element: document.getElementById("MyChart"),
cc: document.getElementById("screenReaderText"),
data: [1,2,3]
});
// If there was an error in generating the chart, print the error message
if(err){
console.error(err);
}
What will the user experience be? When the user navigates to the image, a description will be automatically generated, telling the user that there is interaction available. Then, the user can use arrow keys or keyboard shortcuts to interact with the data.
For code examples in action, see the Chart2Music Examples collection on Codepen.
Some of the examples you will find there include:
You can also find examples of integrations with other visualization libraries:
Go to chart2music.com for the full tutorial.
FAQs
Turns charts into music so the blind can hear data
The npm package chart2music receives a total of 1,138 weekly downloads. As such, chart2music popularity was classified as popular.
We found that chart2music demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.