Gathering detailed insights and metrics for react-json-edit-criss
Gathering detailed insights and metrics for react-json-edit-criss
npm install react-json-edit-criss
Typescript
Module System
Node Version
NPM Version
69.4
Supply Chain
93.7
Quality
74.8
Maintenance
50
Vulnerability
100
License
JavaScript (98.18%)
CSS (1.56%)
HTML (0.26%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
836
Last Day
1
Last Week
1
Last Month
17
Last Year
68
MIT License
11 Stars
139 Commits
5 Forks
2 Watchers
8 Branches
2 Contributors
Updated on Aug 20, 2023
Minified
Minified + Gzipped
Latest Version
0.3.2
Package Id
react-json-edit-criss@0.3.2
Size
12.03 kB
NPM Version
3.10.10
Node Version
6.10.3
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-88.9%
1
Compared to previous week
Last Month
183.3%
17
Compared to previous month
Last Year
-15%
68
Compared to previous year
JSON editor for React
import { JsonEditor } from 'react-json-edit';
1class MyComponent extends Component { 2 3 constructor(props) { 4 super(props); 5 this.state = { 6 json: undefined /* setup here or load elsewhere */ 7 } 8 } 9 10 callback = (changes) => { 11 this.setState({json: changes}); 12 }; 13 14 render() { 15 return ( 16 <div> 17 <JsonEditor value={this.state.json} propagateChanges={this.callback}/> 18 </div> 19 ); 20 } 21}
It possible to parse and see errorMessage from parsing with the following helper method
1import { parse } from 'react-json-edit'; 2 3load_callback(text) { 4 const parsed = parse(text); 5 6 if(parsed.json === undefined) { 7 this.setState({message: parsed.errorText}); 8 } else { 9 this.setState({json: parsed.json, message: undefined}); 10 } 11} 12 13render() { 14 return ( 15 <div> 16 <JsonEditor value={this.state.json} propagateChanges={this.callback}/> 17 <span>{this.state.message}</span> 18 </div> 19 ); 20}
I decided to use inline styling, due to troubles with Isomorphic rendering. The styling can be changed with a props on JsonEditor or via css.
<JsonEditor styling={ ... object }
where the following keys can be set: root, array, object, object-row, array-row, value, key, string, number, undefined, boolean, null, button, add-group (AddButton), add-input, add-button, save-button, cancel-button, delete-button
.
Remember that React uses different style names than css does.
or the css class names (which trumps inline style!):
JsonEditor, ArrayItem, ObjectItem, ArrayRow, ObjectRow, KeyItem, StringItem, NumberItem, BooleanItem,
Editor elements:
AddButton, AddInput, add-input, add-button, save-button, cancel-button, delete-button,
Add props tableLike={true}
to view json in a table.
1 render() { 2 return ( 3 <div> 4 <JsonEditor value={this.state.json} tableLike={true} propagateChanges={this.callback}/> 5 </div> 6 ); 7 }
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
19 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More