# react-xlsx-jsons

> xlsx-json || json-xlsx

Latest version **1.0.7** (published 2019-08-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-xlsx-jsons
pnpm add react-xlsx-jsons
yarn add react-xlsx-jsons
bun add react-xlsx-jsons
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2019-08-02 |
| First published | 2019-08-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 13.2 KB |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | brucer |
| Maintainers | brucer |
| Keywords | xlsx, json, xlsx-json, json-xlsx |

## Links

- npm: https://www.npmjs.com/package/react-xlsx-jsons
- Repository: https://github.com/bruser/xlsx-json
- Homepage: https://github.com/bruser/xlsx-json/blob/master/readme.md
- Issues: https://github.com/bruser/xlsx-json/issues
- npm.io page: https://npm.io/package/react-xlsx-jsons

## Dependencies (10)

- [antd](https://npm.io/package/antd.md) ^3.20.7
- [xlsx](https://npm.io/package/xlsx.md) ^0.14.4
- [react](https://npm.io/package/react.md) ^15.6.1
- [babel-cli](https://npm.io/package/babel-cli.md) ^6.0.0
- [react-dom](https://npm.io/package/react-dom.md) ^15.6.1
- [babel-core](https://npm.io/package/babel-core.md) ^6.14.0
- [babel-loader](https://npm.io/package/babel-loader.md) ^6.2.5
- [babel-preset-react](https://npm.io/package/babel-preset-react.md) ^6.24.1
- [babel-preset-es2015](https://npm.io/package/babel-preset-es2015.md) ^6.14.0
- [babel-plugin-istanbul](https://npm.io/package/babel-plugin-istanbul.md) ^2.0.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.7 (latest) — 2019-08-02
- 1.0.6 — 2019-08-02
- 1.0.5 — 2019-08-02
- 1.0.4 — 2019-08-02

## README

## title

> 基于xlsx antd的react组件，用于导出表格，或者传入表格解析json


## code useage

> ``` npm i 'xlsx-jsons' ```

> ``` import {XLSX2JSON} from 'xlsx-jsons'; ```

> ``` <XLSX2JSON isNeedExcel={true} json={[{a:1,b:2}]} / > ```

> ``` <XLSX2JSON isNeedJson={true} getJson={(json)=>{console.log(json)}} /> ```


## useage


> isNeedJson:bool  是否是上传表格导出json, 

> getJson:func 上传表格后的返回json的回调函数,

> isNeedExcel:bool 是否要导出表格,

> json：需要导成表格的js对象,



## introduce

> 目前只支持react版本，后续更新支持vue版本

---
_Source: https://npm.io/package/react-xlsx-jsons · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
