# autommate-react-json-viewer

> Provides JSON view and manipulate

Latest version **0.1.15** (published 2023-03-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install autommate-react-json-viewer
pnpm add autommate-react-json-viewer
yarn add autommate-react-json-viewer
bun add autommate-react-json-viewer
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.15 |
| Published | 2023-03-06 |
| First published | 2022-06-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 28.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | AutomMate Inc. |
| Maintainers | abdullahonur, onur.d |

## Links

- npm: https://www.npmjs.com/package/autommate-react-json-viewer
- npm.io page: https://npm.io/package/autommate-react-json-viewer

## Dependencies (3)

- [path](https://npm.io/package/path.md) ^0.12.7
- [prop-types](https://npm.io/package/prop-types.md) ^15.8.1
- [autoprefixer](https://npm.io/package/autoprefixer.md) ^10.4.7

## Recent versions

- 0.1.15 (latest) — 2023-03-06
- 0.1.14 — 2023-03-03
- 0.1.13 — 2022-11-07
- 0.1.12 — 2022-11-07
- 0.1.11 — 2022-11-07
- 0.1.10 — 2022-07-07
- 0.1.9 — 2022-07-07
- 0.1.8 — 2022-07-06
- 0.1.7 — 2022-07-06
- 0.1.6 — 2022-07-05
- 0.1.5 — 2022-06-29
- 0.1.4 — 2022-06-29
- 0.1.3 — 2022-06-23
- 0.1.2 — 2022-06-23
- 0.1.1 — 2022-06-23
- … 1 more at https://npm.io/package/autommate-react-json-viewer/versions

## README

# autommate-react-json-viewer

## _The easy JSON processes, Ever_

[![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)](https://travis-ci.org/joemccann/dillinger)

`autommate-react-json-viewer` allows you to preview JSON and customize label and value via renderer,

## Table of Contents

- [Installation](#installation)
- [Usage](#usage)
- [Demo](#demo)
- [License](#license)

## Installation

You need `node` environment system to use `autommate-react-json-viewer`. Run the following command to install:

```
npm install --save autommate-react-json-viewer
```

## Usage

Simply usage format is like below:

```javascript
import React from 'react';
import JsonTree from 'autommate-react-json-viewer';

function App() {

    const labelRender = (keyPath, key, type, hasParent, hasChild) => {
        return (
            <span>
                <strong>{key} :</strong>
            </span>
        )
    }

    const valueRender = (value) => {
        return <span>{value}</span>
    }

    const jsonData = {
        "name": "AutomMate JSON Viewer",
        "version": "1.0.0",
        "keywords": ["autommate", "json", "viewer"]
    }

    return (
        <JsonTree data={jsonData} expandable={true} labelRender={labelRender} valueRender={valueRender}/>
    );
}

```

## Demo

[Click me!](https://react-ts-atx6ta.stackblitz.io)

## License

MIT ©

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