Gathering detailed insights and metrics for @ganuz/is-data-descriptor
Gathering detailed insights and metrics for @ganuz/is-data-descriptor
npm install @ganuz/is-data-descriptor
Typescript
Module System
Node Version
NPM Version
71.3
Supply Chain
86.1
Quality
74.3
Maintenance
100
Vulnerability
100
License
TypeScript (99.81%)
JavaScript (0.19%)
Total Downloads
2,056
Last Day
3
Last Week
10
Last Month
25
Last Year
190
8 Commits
2 Watching
2 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.1.1
Package Id
@ganuz/is-data-descriptor@0.1.1
Unpacked Size
94.00 kB
Size
14.54 kB
File Count
27
NPM Version
lerna/3.13.2/node@v10.15.1+x64 (win32)
Node Version
10.15.1
Cumulative downloads
Total Downloads
Last day
0%
3
Compared to previous day
Last week
42.9%
10
Compared to previous week
Last month
127.3%
25
Compared to previous month
Last year
-37.1%
190
Compared to previous year
Is Data Descriptor is package from Ganuz library
1$ yarn add @ganuz/is-data-descriptor
Or
1$ npm install --save @ganuz/is-data-descriptor
Module
1import { 2 default as isDataDescriptor 3} from '@ganuz/is-data-descriptor';
Browser
1<script src="https://unpkg.com/@ganuz/is-data-descriptor/bundle.umd.min.js"></script>
1let { 2 isDataDescriptor 3} = G;
Examples
1 isDataDescriptor(); // => false 2 isDataDescriptor({}); // => false 3 isDataDescriptor({foo: 'bar'}); // => false 4 isDataDescriptor({writable: NaN}); // => true 5 isDataDescriptor({value: 1980, color: 'green'}); // => true 6 isDataDescriptor({value: undefined}); // => true 7 isDataDescriptor({get(){}, value: undefined}); // => true 8 isDataDescriptor({set(){}, writable: undefined}); // => true 9 isDataDescriptor({set(){}, get(){}, value: 70n, writable: false}); // => true
Note: This function does not validate that it is a valid descriptor, it only checks if the properties of data descriptor exist, for description validation use {@link isPropertyDescriptor}.
Module
1import { 2 default as assertDataDescriptor 3} from '@ganuz/is-data-descriptor/assert';
Browser
1<script src="https://unpkg.com/@ganuz/is-data-descriptor/assert/bundle.umd.min.js"></script>
1let { 2 assertDataDescriptor 3} = G;
Examples
1 assertDataDescriptor(undefined); // throw TypeError 2 assertDataDescriptor('foo'); // throw TypeError 3 assertDataDescriptor(true); // throw TypeError 4 assertDataDescriptor({}); // throw TypeError 5 assertDataDescriptor({value: undefined}); // => {value: undefined} 6 assertDataDescriptor({writable: true}); // => {writable: true} 7 assertDataDescriptor({value: 67, get() {}}); // => {value: 67, get() {}}
Copyright © Yisrael Eliev, Licensed under the MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/8 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
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
99 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-13
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