
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
react-json-csv
Advanced tools
A React library to render a component that helps in json to csv conversion.
Install the component using NPM:
$ npm install --save react-json-csv
Or YARN;
$ yarn add react-json-csv
import {
JsonToCsv,
useJsonToCsv
} from 'react-json-csv';
Converts json to csv file (.csv format) and downloads it
const filename = 'Csv-file',
fields = {
"index": "Index",
"guid": "GUID"
},
style = {
padding: "5px"
},
data = [
{ index: 0, guid: 'asdf231234'},
{ index: 1, guid: 'wetr2343af'}
],
text = "Convert Json to Csv";
<JsonToCsv
data={data}
filename={filename}
fields={fields}
style={style}
text={text}
/>
const { saveAsCsv } = useJsonToCsv();
<button onClick={saveAsCsv({ data, fields, filename })}>
useJsonToCsv
</button>
FAQs
A React component to handle json to csv conversion
The npm package react-json-csv receives a total of 907 weekly downloads. As such, react-json-csv popularity was classified as not popular.
We found that react-json-csv 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.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.