Socket
Socket
Sign inDemoInstall

react-json-excel

Package Overview
Dependencies
7
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-json-excel

A React component to handle json to excel conversion


Version published
Weekly downloads
271
decreased by-8.45%
Maintainers
1
Install size
495 kB
Created
Weekly downloads
 

Readme

Source

React Json Excel

A React library to render a component that helps in json to excel conversion.

npm version dependencies Status badge devDependency Status badge Gitter badge

Install

Install the component using NPM:

$ npm install --save react-json-excel

Usage

Initialise module

import {
  JsonToExcel
} from 'react-json-excel';

Render

Json To Excel

Converts json to excel file (.csv format) and downloads it

const className = 'class-name-for-style',
  filename = 'Excel-file',
  fields = {
    "index": "Index",
    "guid": "GUID"
  },
  style = {
    padding: "5px"
  },
  data = [
    { index: 0, guid: 'asdf231234'},
    { index: 1, guid: 'wetr2343af'}
  ],
  text = "Convert Json to Excel";
<JsonToExcel
  data={data}
  className={className}
  filename={filename}
  fields={fields}
  style={style}
  text={text}
/>

License

MIT License

Keywords

FAQs

Last updated on 24 Jul 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc