
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-easy-export
Advanced tools
npm install react-easy-export
or
yard add react-easy-export
Exports data as a CSV file.
@param {Array | Array<Array>} data - Array of objects or 2D array representing data.
@param {string} [filename=data.csv'] - Optional. The name of the exported file.
@param {string} [separator=','] - Optional. Separator used between values.
import { exportToCSV } from 'react-export-ease';
const data = [
{ name: "Ethan", gender: "male" },
{ name: "Jane", gender: "female" }
];
exportToCSV(data, 'users.csv');
// Alternatively:
exportToCSV(data);
Exports data as an Excel (.xls) file.
@param {Array | Array<Array>} data - The data to be exported. Can be an array of objects or a 2D array.
@param {string} [filename='data.xls'] - Optional. Name of the exported file.
Note: This method generates an older Excel format (.xls) using an HTML table. It may not support advanced Excel features.
import { exportToExcel } from 'react-export-ease';
const data = [
["Name", "Gender"],
["Ethan", "Male"],
["Jane", "Female"]
];
exportToExcel(data, 'users.xlsx');
// Alternatively:
exportToExcel(data);
Exports HTML as a PDF file.
@param {string} content - The HTML content to be printed to PDF.
@param {string} [filename='data.pdf'] - Optional. Name of the exported file (though this can't be enforced through the print dialog).
import { exportToPDF } from 'react-export-ease';
const content = `
<h1>Users</h1>
<ul>
<li>Ethan: male</li>
<li>Jane: female</li>
</ul>
`;
exportToPDF(content, 'users.pdf');
// Alternatively:
exportToPDF(content);
We welcome contributions! Please open an issue or submit a pull request if you would like to help improve react-easy-export.
MIT
See LICENSE.md
FAQs
A React library for easily exporting data to CSV, PDF, and Excel formats.
We found that react-easy-export 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.