Gathering detailed insights and metrics for chai-shallow-deep-equal
Gathering detailed insights and metrics for chai-shallow-deep-equal
Gathering detailed insights and metrics for chai-shallow-deep-equal
Gathering detailed insights and metrics for chai-shallow-deep-equal
npm install chai-shallow-deep-equal
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.7
Supply Chain
90.5
Quality
75.7
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
20 Stars
44 Commits
9 Forks
1 Watchers
1 Branches
8 Contributors
Updated on Jul 22, 2022
Latest Version
1.4.6
Package Id
chai-shallow-deep-equal@1.4.6
Size
3.40 kB
NPM Version
3.10.8
Node Version
6.9.1
Published on
Mar 15, 2017
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Will shallowly perform a deep equal assertion. In other terms is consist of checking that an object, or objects graph, is contained within another one (see examples bellow).
1<script src="chai.js"></script> 2<script src="chai-shallow-deep-equal.js"></script>
1var chai = require('chai'); 2chai.use(require('chai-shallow-deep-equal'));
ShallowDeepEqual is available for all chai assertion styles:
1var a = {name: 'Michel', language: 'javascript'}; 2var b = {name: 'Michel'}; 3 4a.should.shallowDeepEqual(b); 5expect(a).to.shallowDeepEqual(b); 6assert.shallowDeepEqual(a, b);
1assert.shallowDeepEqual({name: 'Michel', language: 'javascript'}, {name: 'Michel'}); // true 2 3assert.shallowDeepEqual({ 4 name: 'Michel', 5 language: 'javascript', 6 tags: [ 7 'developer', 8 'gamer' 9 ]}, 10 { 11 name: 'Michel', 12 tags: [ 13 'developer' 14 ]}); // true 15 16assert.shallowDeepEqual([ 17 {brand: 'apple', color: 'red'}, 18 {brand: 'samsung', color: 'blue'}, 19 ], 20 { 21 length: 2, 22 0: {color: 'red'}, 23 1: {brand: 'samsung'}, 24 }); // true 25 26assert.shallowDeepEqual({ 27 name: 'Michel', 28 age: undefined 29 }, 30 { 31 name: 'Michel', 32 age: 37 33 }); // false (age should not be defined)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 6/26 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
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