
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
json-to-csv-downloader-react
Advanced tools
Simple React TypeScript component for downloading JSON data as CSV
A simple, lightweight React TypeScript component for downloading JSON data as CSV files with automatic or manual header detection.
npm install react-json-to-csv-download
Or with yarn:
yarn add react-json-to-csv-download
import JsonToCsvDownload from 'react-json-to-csv-download';
const MyComponent = () => {
const data = [
{ name: "John Doe", age: 30, city: "New York" },
{ name: "Jane Smith", age: 25, city: "Los Angeles" }
];
return (
<JsonToCsvDownload data={data}>
Download CSV
</JsonToCsvDownload>
);
};
Prop | Type | Default | Description |
---|---|---|---|
data | JsonObject[] | [] | Required. Array of objects to convert to CSV |
headers | string[] | null | null | Optional. Specific headers to include. If not provided, headers are auto-detected |
filename | string | "data.csv" | Name of the downloaded file |
className | string | "" | CSS classes for styling the button |
FAQs
Simple React TypeScript component for downloading JSON data as CSV
The npm package json-to-csv-downloader-react receives a total of 64 weekly downloads. As such, json-to-csv-downloader-react popularity was classified as not popular.
We found that json-to-csv-downloader-react demonstrated a healthy version release cadence and project activity because the last version was released less than 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 how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.