A react button component to easily generate csv downloads of your json data.
npm install react-json-to-csvA react button component to easily generate csv downloads of your json data. ✨



https://react-json-to-csv.coston.io
- Create a csv download from json data
- Lightweight
- Easy to use
- optional filename
Install with npm:
``sh`
npm i react-json-to-csv
Or load from a CDN:
`html`
`jsx
import CsvDownloadButton from 'react-json-to-csv'
...
`
| # | Property | Type | Requirement | Default | Description |
| --- | --------- | ---------- | ----------- | ------------------------- | ----------------------------------------------------------------------------- |
| 1 | data | [] | required | | array of objects |string
| 2 | filename | | optional | "export.csv" | The filename. The .csv extention will be edded if not included in file name |string
| 3 | delimiter | | optional | ";" | fields separator |string[]
| 4 | headers | | optional | provided data object keys | List of columns that will be used in the final CSV file. |
Install types with npm
`sh``
npm i --save-dev @types/react-json-to-csv
Please help provide good data faster! Submit any issues and/or make a pull request!