Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.
1.4.0
FAQs
Turns charts into music so the blind can hear data
The npm package chart2music receives a total of 1,093 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.