Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-json-view

Package Overview
Dependencies
Maintainers
1
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-json-view - npm Package Compare versions

Comparing version 1.7.5 to 1.8.0

5

package.json
{
"name": "react-json-view",
"description": "Interactive react component for displaying javascript arrays and JSON objects.",
"version": "1.7.5",
"version": "1.8.0",
"main": "dist/main.js",

@@ -26,2 +26,3 @@ "files": [

"enzyme": "^2.8.2",
"flux": "^3.1.2",
"html-webpack-plugin": "2.28.0",

@@ -38,3 +39,3 @@ "ignore-styles": "^5.0.1",

"react-hot-loader": "^3.0.0-beta.6",
"react-icons": "^2.2.3",
"react-icons": "2.2.5",
"react-test-renderer": "^15.5.4",

@@ -41,0 +42,0 @@ "react-tooltip": "^3.2.10",

10

README.md

@@ -46,8 +46,9 @@ ![alt text](https://github.com/mac-s-g/react-json-view/blob/master/doc/rjv-icon-alt.png?raw=true)

`name`|`string`|"root"|Contains the name of your root node
`collapsed`|`boolean`|`false`|When set to `true`, all nodes will be collapsed by default
`theme`|`string`|"rjv-default"|RJV supports base-16 themes. Check out the [list of supported themes here](https://github.com/gaearon/base16-js/tree/master/src). A custom "rjv-default" theme applies by default.
`indentWidth`|`integer`|4|Set the indent-width for nested objects
`collapsed`|`boolean`|`false`|When set to `true`, all nodes will be collapsed by default
`enableClipboard`|`boolean`|`true`|When set to `true`, the user can copy objects and arrays to clipboard
`displayObjectSize`|`boolean`|`true`|When set to `true`, objects and arrays are labeled with size
`displayDataTypes`|`boolean`|`true`|When set to `true`, data type labels prefix values
`onEdit`|`(edit) => {}`|`false`|When a callback function is passed in, value edits are enabled. The callback is invoked when edits are made.

@@ -58,2 +59,3 @@ ### Features

* Object and array nodes support a "Copy to Clipboard" feature
* onEdit prop allows users to edit the `src` variable
* Base-16 Theme Support

@@ -90,4 +92,2 @@

#### Development within a Docker Container
*Note:* This workflow is recommended for developers using a linux OS. Mounting files into a docker container may have issues if you're running docker within a Windows OS.
You can use Docker to run the source code in a local development environment:

@@ -113,3 +113,3 @@ 1. Clone this repo

### To-Do's
1. Document testing process in README
2. Add some style improvements
1. Support "delete" capability when `onEdit` is enabled
2. Support "add" capability when `onEdit` is enabled

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc