Rich visual representation and editor of javascript objects and values.


Keywords
react-component, pretty-print, log, debug
License
MIT
Install
npm install react-object@2.0.5

Documentation

react-object

Build Status

Rich visual representation and editor of javascript objects and values.

Example

Features

  • Color highlighted pretty-printing of objects and primitive values.
  • Expandable to drill into object and array hierarchy.
  • Abbreviates large objects/arrays to prevent render slow-down.
  • Rich date notation.
  • Rich function notation (with parameter names).

Getting Started

npm install react-object

Render a complex object:

import { Value } from "react-object";

const obj = { foo: 123, bar: { baz: "hello" }};

<Value
    label="foo"
    value={ obj }/>        

Will yield:

Value

TODO

  • editable

Explore the API in the UIHarness

git clone https://github.com/philcockfield/react-object.git
cd react-object
npm install
npm start

ui-harness


License: MIT