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.4.1 to 1.5.0

3

package.json
{
"name": "react-json-view",
"description": "interactive json viewer wrapped up in a react component",
"version": "1.4.1",
"version": "1.5.0",
"main": "dist/main.js",

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

"react-component",
"react-json",
"responsive",

@@ -85,0 +86,0 @@ "responsive-json",

@@ -34,9 +34,12 @@ # react-json-view

`name`|`string`|"root"|Contains the name of your root node
`collapsed`|`boolean`|false|If set to `true`, all nodes will be collapsed by default
`collapsed`|`boolean`|`false`|When set to `true`, all nodes will be collapsed by default
`indentWidth`|`integer`|4|Set the indent-width for nested objects
`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
### Features
* Object and array nodes can be collapsed and expanded
* Object and array nodes display meta-data on hover
* Object and array nodes include a "Copy to Clipboard" feature
* Object and array nodes display meta-data
* Object and array nodes support a "Copy to Clipboard" feature
* Different classes are applied to different types for style interaction

@@ -84,7 +87,4 @@

1. Add Tests!
2. Implement persistent state for expand/collapse attribute
3. improve customizability
* add optional `showTypes` prop
* add props to define what is expanded/collapsed by default
* consider moving to postcss
2. improve customizability
* allow specific keys to be expanded/collapsed by default
* add a few different themes on top of `_variables.scss`

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