
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
csv-chart-generator
Advanced tools
A tool for visualizing data from CSV files as line charts and converting the charts to a PDF document.
This npm module is a tool for visualizing data from CSV files as line charts and converting the charts to a PDF document. The CSV data is expected to contain one time column and three columns of numerical values representing the x, y, and z coordinates. The program reads the CSV data, generates line charts for each coordinate using the Chart.js library, and combines the charts into a single PDF document.
These instructions will help you get started with using the CSV Chart Generator in your own project.
To use this module, you will need to have Node.js and npm installed on your machine. You can check if you have these tools installed by running the following commands in the terminal:
node -v
npm -v
If you do not have Node.js and npm installed, you can download and install them from the official website (https://nodejs.org/).
To install the CSV Chart Generator, run the following command in your terminal:
npm install csv-chart-generator
To use the CSV Chart Generator, follow these steps:
time,x,y,z
<miliseconds>,<numeric value>,<numeric value>,<numeric value>
<miliseconds>,<numeric value>,<numeric value>,<numeric value>
...
The first row should not contain the column names, rows should contain the data values. The time column should contain the time data in number of milliseconds since January 1, 1970. x, y, and z columns should contain numerical values. 2. In your Node.js app, require the CSV Chart Generator module and call the generatePDF function, passing in the path to the folder containing your CSV files:
In your Node.js app, require the CSV Chart Generator module and call the generatePDF function, passing in the path to the folder containing your CSV files:
node app.js
The PDF document will be saved to a file named output.pdf in the project root directory. The PDF will have as many pages as there are CSV files in the specified folder.
Here's an example of how to use the CSV Chart Generator in a Node.js app via providing the folder path on the console:
// app.js
const data = require('csv-chart-generator');
const arguments = process.argv;
const folderPath = arguments[2].toString();
data.generatePDF(folderPath);
To run the example, open a terminal and navigate to the directory containing app.js. Then, run the following command:
node app.js <pathToFolder>
Replace with the path to the folder containing your CSV files. The PDF document will be generated and saved to a file named output.pdf in the project root directory.
FAQs
A tool for visualizing data from CSV files as line charts and converting the charts to a PDF document.
The npm package csv-chart-generator receives a total of 0 weekly downloads. As such, csv-chart-generator popularity was classified as not popular.
We found that csv-chart-generator 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.