Gathering detailed insights and metrics for core-js
Gathering detailed insights and metrics for core-js
Gathering detailed insights and metrics for core-js
Gathering detailed insights and metrics for core-js
npm install core-js
Typescript
Module System
Node Version
NPM Version
93.4
Supply Chain
98.7
Quality
86.7
Maintenance
100
Vulnerability
100
License
JavaScript (99.81%)
TypeScript (0.15%)
HTML (0.04%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
25,086 Stars
6,885 Commits
1,684 Forks
256 Watchers
12 Branches
131 Contributors
Updated on Jun 29, 2025
Minified
Minified + Gzipped
Latest Version
3.43.0
Package Id
core-js@3.43.0
Unpacked Size
1.24 MB
Size
295.33 kB
File Count
3,637
NPM Version
11.4.1
Node Version
24.1.0
Published on
Jun 09, 2025
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
No dependencies detected.
Modular standard library for JavaScript. Includes polyfills for ECMAScript up to 2023: promises, symbols, collections, iterators, typed arrays, many other features, ECMAScript proposals, some cross-platform WHATWG / W3C features and proposals like
URL
. You can load only required features or use it without global namespace pollution.
core-js
isn't backed by a company, so the future of this project depends on you. Become a sponsor or a backer if you are interested in core-js
: Open Collective, Patreon, Boosty, Bitcoin ( bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz ), Alipay.
1import 'core-js/actual'; 2 3Promise.resolve(42).then(it => console.log(it)); // => 42 4 5Array.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5] 6 7[1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2] 8 9(function * (i) { while (true) yield i++; })(1) 10 .drop(1).take(5) 11 .filter(it => it % 2) 12 .map(it => it ** 2) 13 .toArray(); // => [9, 25] 14 15structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
You can load only required features:
1import 'core-js/actual/promise'; 2import 'core-js/actual/set'; 3import 'core-js/actual/iterator'; 4import 'core-js/actual/array/from'; 5import 'core-js/actual/array/flat-map'; 6import 'core-js/actual/structured-clone'; 7 8Promise.resolve(42).then(it => console.log(it)); // => 42 9 10Array.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5] 11 12[1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2] 13 14(function * (i) { while (true) yield i++; })(1) 15 .drop(1).take(5) 16 .filter(it => it % 2) 17 .map(it => it ** 2) 18 .toArray(); // => [9, 25] 19 20structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
Or use it without global namespace pollution:
1import Promise from 'core-js-pure/actual/promise'; 2import Set from 'core-js-pure/actual/set'; 3import Iterator from 'core-js-pure/actual/iterator'; 4import from from 'core-js-pure/actual/array/from'; 5import flatMap from 'core-js-pure/actual/array/flat-map'; 6import structuredClone from 'core-js-pure/actual/structured-clone'; 7 8Promise.resolve(42).then(it => console.log(it)); // => 42 9 10from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5] 11 12flatMap([1, 2], it => [it, it]); // => [1, 1, 2, 2] 13 14Iterator.from(function * (i) { while (true) yield i++; }(1)) 15 .drop(1).take(5) 16 .filter(it => it % 2) 17 .map(it => it ** 2) 18 .toArray(); // => [9, 25] 19 20structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
It's a global version (first 2 examples), for more info see core-js
documentation.
No vulnerabilities found.
Reason
30 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 10
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
Found 1/29 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
20 existing vulnerabilities detected
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