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
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.8
Supply Chain
91
Quality
75.9
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
8,569,581,214
Last Day
2,737,034
Last Week
43,463,849
Last Month
185,550,205
Last Year
1,931,702,809
MIT License
45 Stars
346 Commits
17 Forks
6 Watchers
1 Branches
7 Contributors
Updated on Apr 22, 2025
Minified
Minified + Gzipped
Latest Version
1.1.1
Package Id
object-keys@1.1.1
Size
7.50 kB
NPM Version
6.7.0
Node Version
11.13.0
Published on
Apr 07, 2019
Cumulative downloads
Total Downloads
Last Day
-7.6%
2,737,034
Compared to previous day
Last Week
-6.9%
43,463,849
Compared to previous week
Last Month
1.4%
185,550,205
Compared to previous month
Last Year
15.8%
1,931,702,809
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 dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
Found 0/21 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-23
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