Installations
npm install jsondiffpatch-for-react
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
12.13.1
NPM Version
6.13.4
Score
66.8
Supply Chain
83.9
Quality
75.2
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
hero-guo
Download Statistics
Total Downloads
148,868
Last Day
131
Last Week
368
Last Month
2,004
Last Year
24,071
GitHub Statistics
11 Stars
26 Commits
8 Forks
2 Watching
1 Branches
3 Contributors
Bundle Size
4.32 kB
Minified
844.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.0.4
Package Id
jsondiffpatch-for-react@1.0.4
Unpacked Size
18.29 kB
Size
6.29 kB
File Count
16
NPM Version
6.13.4
Node Version
12.13.1
Total Downloads
Cumulative downloads
Total Downloads
148,868
Last day
24.8%
131
Compared to previous day
Last week
-33.8%
368
Compared to previous week
Last month
24.1%
2,004
Compared to previous month
Last year
-12.8%
24,071
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Peer Dependencies
1
Dev Dependencies
48
jsondiffpatch-for-react
Based on https://github.com/benjamine/jsondiffpatch
1. install
npm install jsondiffpatch-for-react
2. usage
1import React from 'react';
2import JsonDiffReact from 'jsondiffpatch-for-react';
3
4<JsonDiffReact
5 right: PropTypes.any,
6 left: PropTypes.any,
7 show: PropTypes.bool,
8 annotated: PropTypes.bool,
9 tips: PropTypes.string,
10 objectHash: PropTypes.func,
11/>
3. component props
-
left
(array, object, string) -
right
(array, object, string) -
show
(bool)you can show/hide unchanged values
-
annotated
(bool)This will render the original JSON delta in html, with annotations aside explaining the meaning of each part. This attempts to make the JSON delta format self-explained.
-
tips
(string)Message that will displayed in case both elements are identical.
-
objectHash
(function)Will be passed to jsondiffpatch to improve array comparison performance, as described here. Example:
1<JsonDiffReact 2 left={left} 3 right={right} 4 objectHash={(obj: any) => obj.id || obj._id || obj.name || JSON.stringify(obj)} 5/>
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Warn: project license file does not contain an FSF or OSI license.
Reason
Found 4/20 approved changesets -- score normalized to 2
Reason
project is archived
Details
- Warn: Repository is archived.
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 10 are checked with a SAST tool
Score
3.3
/10
Last Scanned on 2025-01-27
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