Gathering detailed insights and metrics for object-keys
Gathering detailed insights and metrics for object-keys
Gathering detailed insights and metrics for object-keys
Gathering detailed insights and metrics for object-keys
npm install object-keys
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
45 Stars
344 Commits
17 Forks
7 Watching
1 Branches
7 Contributors
Updated on 29 Aug 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-7.2%
7,586,364
Compared to previous day
Last week
2.5%
45,634,863
Compared to previous week
Last month
17.6%
180,860,545
Compared to previous month
Last year
10.9%
1,776,039,021
Compared to previous year
An Object.keys shim. Invoke its "shim" method to shim Object.keys if it is unavailable.
Most common usage:
1var keys = Object.keys || require('object-keys');
1var keys = require('object-keys'); 2var assert = require('assert'); 3var obj = { 4 a: true, 5 b: true, 6 c: true 7}; 8 9assert.deepEqual(keys(obj), ['a', 'b', 'c']);
1var keys = require('object-keys'); 2var assert = require('assert'); 3/* when Object.keys is not present */ 4delete Object.keys; 5var shimmedKeys = keys.shim(); 6assert.equal(shimmedKeys, keys); 7assert.deepEqual(Object.keys(obj), keys(obj));
1var keys = require('object-keys'); 2var assert = require('assert'); 3/* when Object.keys is present */ 4var shimmedKeys = keys.shim(); 5assert.equal(shimmedKeys, Object.keys); 6assert.deepEqual(Object.keys(obj), keys(obj));
Implementation taken directly from es5-shim, with modifications, including from lodash.
Simply clone the repo, npm install
, and run npm test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 0/20 approved changesets -- score normalized to 0
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
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