Skip to content

A react button component to easily generate csv downloads of your json data. ✨

License

Notifications You must be signed in to change notification settings

AWorkingApp/react-json-to-csv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⌗ react-json-to-csv

A react button component to easily generate csv downloads of your json data. ✨

npm package version  npm downloads  code style: prettier

Live Demo

https://react-json-to-csv.coston.io

Features

  • Create a csv download from json data
  • Lightweight
  • Easy to use
  • optional filename

Install

Install with npm:

npm i react-json-to-csv

Or load from a CDN:

<script src="https://cdn.jsdelivr.net/npm/react-json-to-csv" />

Example Usage

import CsvDownload from 'react-json-to-csv'
...

<CsvDownload data={mockData} />

Props

Prop Type Requirement Default Description
data object required null object or array of objects
filename string optional "export.csv" The complete filename

Contributing

Please help provide good data faster! Submit any issues and/or make a pull request!

About

A react button component to easily generate csv downloads of your json data. ✨

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%