Gathering detailed insights and metrics for @ganuz/is-accessor-descriptor
Gathering detailed insights and metrics for @ganuz/is-accessor-descriptor
Gathering detailed insights and metrics for @ganuz/is-accessor-descriptor
Gathering detailed insights and metrics for @ganuz/is-accessor-descriptor
npm install @ganuz/is-accessor-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
1,912
Last Day
2
Last Week
6
Last Month
21
Last Year
211
8 Commits
2 Watching
2 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.1.1
Package Id
@ganuz/is-accessor-descriptor@0.1.1
Unpacked Size
93.81 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%
2
Compared to previous day
Last week
-14.3%
6
Compared to previous week
Last month
320%
21
Compared to previous month
Last year
-27%
211
Compared to previous year
Is Accessor Descriptor is package from Ganuz library
1$ yarn add @ganuz/is-accessor-descriptor
Or
1$ npm install --save @ganuz/is-accessor-descriptor
Module
1import { 2 default as isAccessorDescriptor 3} from '@ganuz/is-accessor-descriptor';
Browser
1<script src="https://unpkg.com/@ganuz/is-accessor-descriptor/bundle.umd.min.js"></script>
1let { 2 isAccessorDescriptor 3} = G;
Examples
1 isAccessorDescriptor(); // => false 2 isAccessorDescriptor({}); // => false 3 isAccessorDescriptor({color: 'red'}); // => false 4 isAccessorDescriptor({get: undefined}); // => true 5 isAccessorDescriptor({get: undefined, enumerable: NaN}); // => true 6 isAccessorDescriptor({get: []}); // => true 7 isAccessorDescriptor({set: 78, value: {}}); // => true 8 isAccessorDescriptor({get(){}, writable: true}); // => true 9 isAccessorDescriptor({get: undefined, value: 88, writable: true}); // => 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 assertAccessorDescriptor 3} from '@ganuz/is-accessor-descriptor/assert';
Browser
1<script src="https://unpkg.com/@ganuz/is-accessor-descriptor/assert/bundle.umd.min.js"></script>
1let { 2 assertAccessorDescriptor 3} = G;
Examples
1 assertAccessorDescriptor(null); // throw 2 assertAccessorDescriptor('foo'); // throw 3 assertAccessorDescriptor({}); // throw 4 assertAccessorDescriptor({get: undefined}); // => {get: undefined} 5 assertAccessorDescriptor({set(v) {}, value: 35}); // => {set(v) {}, value: 35}
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