react-json-pretty
Advanced tools
Comparing version
{ | ||
"name": "react-json-pretty", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "A code formatting tool for raw json data", | ||
@@ -5,0 +5,0 @@ "main": "src/JSONPretty.js", |
@@ -24,5 +24,3 @@ # React JSON Pretty | ||
```javascript | ||
var JSONPretty = require('react-json-pretty'); | ||
``` | ||
@@ -32,5 +30,3 @@ Or use the es2015 syntax with the help of babel: | ||
```javascript | ||
import JSONPretty from 'react-json-pretty'; | ||
``` | ||
@@ -41,5 +37,3 @@ | ||
```javascript | ||
<JSONPretty id="json-pretty" json={obj}></JSONPretty> | ||
``` | ||
@@ -52,5 +46,3 @@ | ||
```javascript | ||
require('react-json-pretty/JSONPretty.monikai.styl'); | ||
``` | ||
@@ -61,3 +53,3 @@ | ||
```javascript | ||
import 'react-json-pretty/JSONPretty.monikai.styl'; | ||
import 'react-json-pretty/JSONPretty.monikai.styl'; | ||
``` | ||
@@ -88,3 +80,2 @@ | ||
```javascript | ||
<JSONPretty json={yourJSON} replacer={ | ||
@@ -103,3 +94,2 @@ function (key, value) { | ||
</JSONPretty> | ||
``` | ||
@@ -116,6 +106,4 @@ | ||
```javascript | ||
// The final className will be 'test-class custom-json-pretty' | ||
<JSONPretty className="test-class" themeClassName="custom-json-pretty" json={yourjson}></JSONPretty> | ||
``` | ||
@@ -122,0 +110,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
-100%84339
-0.02%137
-8.05%