blazing fast client-side data export utility
npm install my-test-export-packageEfficiently process and export large datasets (e.g., 1 million rows) into .xlsx files using Web Workers. This library is designed to be easily integrated into any React project, providing a seamless and responsive user experience.
- Web Worker Integration: Offload heavy data processing to Web Workers to keep the UI responsive.
- Large Dataset Handling: Efficiently process and export datasets with millions of rows.
- Easy Integration: Designed to be easily integrated into any React project.
- User-Friendly API: Simple and intuitive API for quick setup and usage.
Install the library using npm:
``bash`
npm install flash-export
`javascript
import FlashExport from "flash-export";
// Example dataset with 1 million rows
const dataset = Array.from({ length: 1000000 }, (_, i) => ({
id: i + 1,
name: Item ${i + 1},
value: Math.random(),
}));
const columns = [
{ header: "ID", key: "id" },
{ header: "Name", key: "name" },
{ header: "Value", key: "value" },
];
function App() {
return (
columns={["name", "value"]}
fileName={"test-filename"}
/>
);
}
`
Exports a large dataset to an .xlsx file.
- data: Array of objects representing the dataset.columns
- : Array of column names ['column 1', 'column 2'].fileName
- : Name of the exported file.
This project is licensed under the MIT License - see the LICENSE file for details.
- This library uses SheetJS for generating .xlsx` files.
- Special thanks to all contributors and open-source projects that made this library possible.
For any questions or issues, please open an issue on the GitHub repository.
---
Happy exporting! 🚀