# react-object-visualizer

> An extremely light weight react component library to visualize data object in a table format

Latest version **1.0.14** (published 2021-05-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-object-visualizer
pnpm add react-object-visualizer
yarn add react-object-visualizer
bun add react-object-visualizer
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.14 |
| Published | 2021-05-11 |
| First published | 2021-05-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Meng Tian |
| Maintainers | sdusttm |

## Links

- npm: https://www.npmjs.com/package/react-object-visualizer
- Repository: https://github.com/sdusttm/ReactObjectVisualizer
- Homepage: https://github.com/sdusttm/ReactObjectVisualizer#readme
- Issues: https://github.com/sdusttm/ReactObjectVisualizer/issues
- npm.io page: https://npm.io/package/react-object-visualizer

## Recent versions

- 1.0.14 (latest) — 2021-05-11
- 1.0.13 — 2021-05-03
- 1.0.12 — 2021-05-03
- 1.0.11 — 2021-05-03
- 1.0.10 — 2021-05-03
- 1.0.9 — 2021-05-03
- 1.0.8 — 2021-05-03
- 1.0.7 — 2021-05-03
- 1.0.5 — 2021-05-03
- 1.0.4 — 2021-05-03
- 1.0.3 — 2021-05-03
- 1.0.2 — 2021-05-03
- 1.0.1 — 2021-05-03
- 1.0.0 — 2021-05-03

## README

# Object Visualizer

A light weight react component to visualize the JSON object in a table format.

## Example

![alt text](https://github.com/sdusttm/ReactObjectVisualizer/blob/main/app/screen-shots/Example.PNG?raw=true)

## Features

-   can expand/collapse nested objects
-   options to support levels of default expansion, especialy useful for smaller objects
-   options to support customized size to expand object by default

## How to use

1. Import the **mount** function from the module

```js
import { ObjectVisualizer } from "react-object-visualizer";
```

2. add the component to code

```js
// data is the object to be visualize, configs are optional config parameters
<ObjectVisualizer
    object={data}
    configs={{
        defaultExpandLevels: 1,
        defaultExpandObjectSizeLimit: 500
    }}
></ObjectVisualizer>
```

3. Check in Browser

The object should now be shown in a table format!

## License

[MIT](https://github.com/iendeavor/object-visualizer/blob/master/LICENSE)

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