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.
Report.js depend on jQuery and Chart.js. Don't forget to add them to your page.
import {Renderer} from 'reportjs';
let renderer = new Renderer(),
options = {
data: {
dimensions: [{ id: 'Measures'}, { id: 'Year' }],
dimensionValues: [
[{ id: 'count', caption: 'My Count' }, { id: 'sum', caption: 'My Sum' }],
[{ id: '2013' }, { id: '2014' }]
],
cells: [
{value: 10, dimensionValues: [0, 0]},
{value: 20, dimensionValues: [1, 1]},
{value: 15, dimensionValues: [0, 1]}
]
},
layout: {
type: 'table',
rows: ['Measures'],
columns: ['Measures', 'Category']
}
};
renderer.renderTo($('#mydiv'), options);
This will output
2013 | 2014 | |
---|---|---|
My Count | 10 | |
My Sum | 15 | 20 |
For a browser example without ES6, check the demo
Install the dependencies
git clone https://github.com/youknowriad/report.js.git && cd report.js
npm install
bower install
npm test
FAQs
Report Library
The npm package reportjs receives a total of 1 weekly downloads. As such, reportjs popularity was classified as not popular.
We found that reportjs demonstrated a not healthy version release cadence and project activity because the last version was released 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.
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.