core-js

Standard library

core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
Last updated 7 years ago by zloirock .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install core-js 
SYNC missed versions from official npm registry.

core-js

Modular standard library for JavaScript. Includes polyfills for ECMAScript 5, 2015, 2016, 2017: promises, symbols, collections, iterators, typed arrays, many other features, ECMAScript proposals, some cross-platform WHATWG / W3C ECMAScript-related features and proposals like setImmediate. You can load only required features or use it without global namespace pollution.

Example:

import 'core-js'; // <- at the top of your entry point

Array.from(new Set([1, 2, 3, 2, 1]));          // => [1, 2, 3]
[1, [2, 3], [4, [5]]].flatten(2);              // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32

You can load only required features:

import 'core-js/features/array/from';    // <- at the top of your entry point
import 'core-js/features/array/flatten'; // <- at the top of your entry point
import 'core-js/features/set';           // <- at the top of your entry point
import 'core-js/features/promise';       // <- at the top of your entry point

Array.from(new Set([1, 2, 3, 2, 1]));          // => [1, 2, 3]
[1, [2, 3], [4, [5]]].flatten(2);              // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32

Or use it without global namespace pollution:

import from from 'core-js-pure/features/array/from';
import flatten from 'core-js-pure/features/array/flatten';
import Set from 'core-js-pure/features/set';
import Promise from 'core-js-pure/features/promise';

from(new Set([1, 2, 3, 2, 1]));                // => [1, 2, 3]
flatten([1, [2, 3], [4, [5]]], 2);             // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32

It's a global version (first 2 examples), for more info see core-js documentation.

Current Tags

  • 4.0.0-alpha.0                                ...           alpha (9 months ago)
  • 3.0.0-beta.20                                ...           beta (6 years ago)
  • 3.39.0                                ...           latest (15 days ago)

276 Versions

  • 3.39.0                                ...           15 days ago
  • 3.38.1                                ...           3 months ago
  • 3.38.0                                ...           3 months ago
  • 3.37.1                                ...           6 months ago
  • 3.37.0                                ...           7 months ago
  • 3.36.1                                ...           8 months ago
  • 3.36.0                                ...           9 months ago
  • 4.0.0-alpha.0                                ...           9 months ago
  • 3.35.1                                ...           10 months ago
  • 3.35.0                                ...           a year ago
  • 3.34.0                                ...           a year ago
  • 3.33.3                                ...           a year ago
  • 3.33.2                                ...           a year ago
  • 3.33.1                                ...           a year ago
  • 3.33.0                                ...           a year ago
  • 3.32.2                                ...           a year ago
  • 3.32.1                                ...           a year ago
  • 3.32.0                                ...           a year ago
  • 3.31.1                                ...           a year ago
  • 3.31.0                                ...           a year ago
  • 3.30.2                                ...           2 years ago
  • 3.30.1                                ...           2 years ago
  • 3.30.0                                ...           2 years ago
  • 3.29.1                                ...           2 years ago
  • 3.29.0                                ...           2 years ago
  • 3.28.0                                ...           2 years ago
  • 3.27.2                                ...           2 years ago
  • 3.27.1                                ...           2 years ago
  • 3.27.0                                ...           2 years ago
  • 3.26.1                                ...           2 years ago
  • 3.26.0                                ...           2 years ago
  • 3.25.5                                ...           2 years ago
  • 3.25.4                                ...           2 years ago
  • 3.25.3                                ...           2 years ago
  • 3.25.2                                ...           2 years ago
  • 3.25.1                                ...           2 years ago
  • 3.25.0                                ...           2 years ago
  • 3.24.1                                ...           2 years ago
  • 3.24.0                                ...           2 years ago
  • 3.23.5                                ...           2 years ago
  • 3.23.4                                ...           2 years ago
  • 3.23.3                                ...           2 years ago
  • 3.23.2 [deprecated]           ...           2 years ago
  • 3.23.1 [deprecated]           ...           2 years ago
  • 3.23.0 [deprecated]           ...           2 years ago
  • 3.22.8 [deprecated]           ...           2 years ago
  • 3.22.7 [deprecated]           ...           2 years ago
  • 3.22.6 [deprecated]           ...           2 years ago
  • 3.22.5 [deprecated]           ...           3 years ago
  • 3.22.4 [deprecated]           ...           3 years ago
  • 3.22.3 [deprecated]           ...           3 years ago
  • 3.22.2 [deprecated]           ...           3 years ago
  • 3.22.1 [deprecated]           ...           3 years ago
  • 3.22.0 [deprecated]           ...           3 years ago
  • 3.21.1 [deprecated]           ...           3 years ago
  • 3.21.0 [deprecated]           ...           3 years ago
  • 3.20.3 [deprecated]           ...           3 years ago
  • 3.20.2 [deprecated]           ...           3 years ago
  • 3.20.1 [deprecated]           ...           3 years ago
  • 3.20.0 [deprecated]           ...           3 years ago
  • 3.19.3 [deprecated]           ...           3 years ago
  • 3.19.2 [deprecated]           ...           3 years ago
  • 3.19.1 [deprecated]           ...           3 years ago
  • 3.19.0 [deprecated]           ...           3 years ago
  • 3.18.3 [deprecated]           ...           3 years ago
  • 3.18.2 [deprecated]           ...           3 years ago
  • 3.18.1 [deprecated]           ...           3 years ago
  • 3.18.0 [deprecated]           ...           3 years ago
  • 3.17.3 [deprecated]           ...           3 years ago
  • 3.17.2 [deprecated]           ...           3 years ago
  • 3.17.1 [deprecated]           ...           3 years ago
  • 3.17.0 [deprecated]           ...           3 years ago
  • 3.16.4 [deprecated]           ...           3 years ago
  • 3.16.3 [deprecated]           ...           3 years ago
  • 3.16.2 [deprecated]           ...           3 years ago
  • 3.16.1 [deprecated]           ...           3 years ago
  • 3.16.0 [deprecated]           ...           3 years ago
  • 3.15.2 [deprecated]           ...           3 years ago
  • 3.15.1 [deprecated]           ...           3 years ago
  • 3.15.0 [deprecated]           ...           3 years ago
  • 3.14.0 [deprecated]           ...           3 years ago
  • 3.13.1 [deprecated]           ...           3 years ago
  • 3.13.0 [deprecated]           ...           3 years ago
  • 3.12.1 [deprecated]           ...           4 years ago
  • 3.12.0 [deprecated]           ...           4 years ago
  • 3.11.3 [deprecated]           ...           4 years ago
  • 3.11.2 [deprecated]           ...           4 years ago
  • 3.11.1 [deprecated]           ...           4 years ago
  • 3.11.0 [deprecated]           ...           4 years ago
  • 3.10.2 [deprecated]           ...           4 years ago
  • 3.10.1 [deprecated]           ...           4 years ago
  • 3.10.0 [deprecated]           ...           4 years ago
  • 3.9.1 [deprecated]           ...           4 years ago
  • 3.9.0 [deprecated]           ...           4 years ago
  • 3.8.3 [deprecated]           ...           4 years ago
  • 3.8.2 [deprecated]           ...           4 years ago
  • 3.8.1 [deprecated]           ...           4 years ago
  • 3.8.0 [deprecated]           ...           4 years ago
  • 2.6.12 [deprecated]           ...           4 years ago
  • 3.7.0 [deprecated]           ...           4 years ago
  • 3.6.5 [deprecated]           ...           5 years ago
  • 3.6.4 [deprecated]           ...           5 years ago
  • 3.6.3 [deprecated]           ...           5 years ago
  • 3.6.2 [deprecated]           ...           5 years ago
  • 3.6.1 [deprecated]           ...           5 years ago
  • 3.6.0 [deprecated]           ...           5 years ago
  • 3.5.0 [deprecated]           ...           5 years ago
  • 3.4.8 [deprecated]           ...           5 years ago
  • 2.6.11 [deprecated]           ...           5 years ago
  • 3.4.7 [deprecated]           ...           5 years ago
  • 3.4.6 [deprecated]           ...           5 years ago
  • 3.4.5 [deprecated]           ...           5 years ago
  • 3.4.4 [deprecated]           ...           5 years ago
  • 3.4.3 [deprecated]           ...           5 years ago
  • 3.4.2 [deprecated]           ...           5 years ago
  • 3.4.1 [deprecated]           ...           5 years ago
  • 3.4.0 [deprecated]           ...           5 years ago
  • 3.3.6 [deprecated]           ...           5 years ago
  • 3.3.5 [deprecated]           ...           5 years ago
  • 3.3.4 [deprecated]           ...           5 years ago
  • 3.3.3 [deprecated]           ...           5 years ago
  • 3.3.2 [deprecated]           ...           5 years ago
  • 3.3.1 [deprecated]           ...           5 years ago
  • 3.3.0 [deprecated]           ...           5 years ago
  • 2.6.10 [deprecated]           ...           5 years ago
  • 3.2.1 [deprecated]           ...           5 years ago
  • 3.2.0 [deprecated]           ...           5 years ago
  • 3.1.4 [deprecated]           ...           5 years ago
  • 3.1.3 [deprecated]           ...           5 years ago
  • 2.6.9 [deprecated]           ...           5 years ago
  • 3.1.2 [deprecated]           ...           5 years ago
  • 2.6.8 [deprecated]           ...           5 years ago
  • 3.1.1 [deprecated]           ...           5 years ago
  • 2.6.7 [deprecated]           ...           5 years ago
  • 3.1.0 [deprecated]           ...           5 years ago
  • 2.6.6 [deprecated]           ...           5 years ago
  • 3.0.1 [deprecated]           ...           6 years ago
  • 3.0.0 [deprecated]           ...           6 years ago
  • 3.0.0-beta.20 [deprecated]           ...           6 years ago
  • 3.0.0-beta.19 [deprecated]           ...           6 years ago
  • 3.0.0-beta.18 [deprecated]           ...           6 years ago
  • 3.0.0-beta.17 [deprecated]           ...           6 years ago
  • 3.0.0-beta.16 [deprecated]           ...           6 years ago
  • 2.6.5 [deprecated]           ...           6 years ago
  • 3.0.0-beta.15 [deprecated]           ...           6 years ago
  • 2.6.4 [deprecated]           ...           6 years ago
  • 3.0.0-beta.14 [deprecated]           ...           6 years ago
  • 3.0.0-beta.13 [deprecated]           ...           6 years ago
  • 3.0.0-beta.12 [deprecated]           ...           6 years ago
  • 3.0.0-beta.11 [deprecated]           ...           6 years ago
  • 2.6.3 [deprecated]           ...           6 years ago
  • 3.0.0-beta.10 [deprecated]           ...           6 years ago
  • 3.0.0-beta.9 [deprecated]           ...           6 years ago
  • 3.0.0-beta.8 [deprecated]           ...           6 years ago
  • 2.6.2 [deprecated]           ...           6 years ago
  • 3.0.0-beta.7 [deprecated]           ...           6 years ago
  • 3.0.0-beta.6 [deprecated]           ...           6 years ago
  • 2.6.1 [deprecated]           ...           6 years ago
  • 3.0.0-beta.5 [deprecated]           ...           6 years ago
  • 2.6.0 [deprecated]           ...           6 years ago
  • 3.0.0-beta.4 [deprecated]           ...           6 years ago
  • 3.0.0-beta.3 [deprecated]           ...           6 years ago
  • 3.0.0-beta.2 [deprecated]           ...           6 years ago
  • 2.5.7 [deprecated]           ...           6 years ago
  • 3.0.0-beta.1 [deprecated]           ...           6 years ago
  • 2.5.6 [deprecated]           ...           7 years ago
  • 2.5.5 [deprecated]           ...           7 years ago
  • 3.0.0-alpha.4 [deprecated]           ...           7 years ago
  • 3.0.0-alpha.3 [deprecated]           ...           7 years ago
  • 3.0.0-alpha.2 [deprecated]           ...           7 years ago
  • 2.5.4 [deprecated]           ...           7 years ago
  • 3.0.0-alpha.1 [deprecated]           ...           7 years ago
  • 2.5.3 [deprecated]           ...           7 years ago
  • 2.5.2 [deprecated]           ...           7 years ago
  • 2.5.1 [deprecated]           ...           7 years ago
  • 2.5.0 [deprecated]           ...           7 years ago
  • 2.4.1 [deprecated]           ...           8 years ago
  • 1.2.7 [deprecated]           ...           8 years ago
  • 2.4.0 [deprecated]           ...           9 years ago
  • 2.3.0 [deprecated]           ...           9 years ago
  • 2.2.2 [deprecated]           ...           9 years ago
  • 2.2.1 [deprecated]           ...           9 years ago
  • 2.2.0 [deprecated]           ...           9 years ago
  • 2.1.5 [deprecated]           ...           9 years ago
  • 2.1.4 [deprecated]           ...           9 years ago
  • 2.1.3 [deprecated]           ...           9 years ago
  • 2.1.2 [deprecated]           ...           9 years ago
  • 2.1.1 [deprecated]           ...           9 years ago
  • 2.1.0 [deprecated]           ...           9 years ago
  • 2.0.3 [deprecated]           ...           9 years ago
  • 2.0.2 [deprecated]           ...           9 years ago
  • 2.0.1 [deprecated]           ...           9 years ago
  • 2.0.0 [deprecated]           ...           9 years ago
  • 2.0.0-beta.2 [deprecated]           ...           9 years ago
  • 2.0.0-beta [deprecated]           ...           9 years ago
  • 2.0.0-alpha [deprecated]           ...           9 years ago
  • 1.2.6 [deprecated]           ...           9 years ago
  • 1.2.5 [deprecated]           ...           9 years ago
  • 1.2.4 [deprecated]           ...           9 years ago
  • 1.2.3 [deprecated]           ...           9 years ago
  • 1.2.2 [deprecated]           ...           9 years ago
  • 1.2.1 [deprecated]           ...           9 years ago
  • 1.2.0 [deprecated]           ...           9 years ago
  • 1.1.4 [deprecated]           ...           9 years ago
  • 1.1.3 [deprecated]           ...           9 years ago
  • 1.1.2 [deprecated]           ...           9 years ago
  • 1.1.1 [deprecated]           ...           9 years ago
  • 1.1.0 [deprecated]           ...           9 years ago
  • 1.0.1 [deprecated]           ...           9 years ago
  • 1.0.0 [deprecated]           ...           9 years ago
  • 0.9.18 [deprecated]           ...           9 years ago
  • 0.9.17 [deprecated]           ...           9 years ago
  • 0.9.16 [deprecated]           ...           9 years ago
  • 0.9.15 [deprecated]           ...           9 years ago
  • 0.9.14 [deprecated]           ...           9 years ago
  • 0.9.13 [deprecated]           ...           9 years ago
  • 0.9.12 [deprecated]           ...           9 years ago
  • 0.9.11 [deprecated]           ...           9 years ago
  • 0.9.10 [deprecated]           ...           9 years ago
  • 0.9.9 [deprecated]           ...           10 years ago
  • 0.9.8 [deprecated]           ...           10 years ago
  • 0.9.7 [deprecated]           ...           10 years ago
  • 0.9.6 [deprecated]           ...           10 years ago
  • 0.9.5 [deprecated]           ...           10 years ago
  • 0.9.4 [deprecated]           ...           10 years ago
  • 0.9.3 [deprecated]           ...           10 years ago
  • 0.9.2 [deprecated]           ...           10 years ago
  • 0.9.1 [deprecated]           ...           10 years ago
  • 0.9.0 [deprecated]           ...           10 years ago
  • 0.8.4 [deprecated]           ...           10 years ago
  • 0.8.3 [deprecated]           ...           10 years ago
  • 0.8.2 [deprecated]           ...           10 years ago
  • 0.8.1 [deprecated]           ...           10 years ago
  • 0.8.0 [deprecated]           ...           10 years ago
  • 0.7.2 [deprecated]           ...           10 years ago
  • 0.7.1 [deprecated]           ...           10 years ago
  • 0.7.0 [deprecated]           ...           10 years ago
  • 0.6.1 [deprecated]           ...           10 years ago
  • 0.6.0 [deprecated]           ...           10 years ago
  • 0.5.4 [deprecated]           ...           10 years ago
  • 0.5.3 [deprecated]           ...           10 years ago
  • 0.5.2 [deprecated]           ...           10 years ago
  • 0.5.1 [deprecated]           ...           10 years ago
  • 0.5.0 [deprecated]           ...           10 years ago
  • 0.4.10 [deprecated]           ...           10 years ago
  • 0.4.9 [deprecated]           ...           10 years ago
  • 0.4.8 [deprecated]           ...           10 years ago
  • 0.4.7 [deprecated]           ...           10 years ago
  • 0.4.6 [deprecated]           ...           10 years ago
  • 0.4.5 [deprecated]           ...           10 years ago
  • 0.4.4 [deprecated]           ...           10 years ago
  • 0.4.3 [deprecated]           ...           10 years ago
  • 0.4.2 [deprecated]           ...           10 years ago
  • 0.4.1 [deprecated]           ...           10 years ago
  • 0.4.0 [deprecated]           ...           10 years ago
  • 0.3.3 [deprecated]           ...           10 years ago
  • 0.3.2 [deprecated]           ...           10 years ago
  • 0.3.1 [deprecated]           ...           10 years ago
  • 0.3.0 [deprecated]           ...           10 years ago
  • 0.2.5 [deprecated]           ...           10 years ago
  • 0.2.4 [deprecated]           ...           10 years ago
  • 0.2.3 [deprecated]           ...           10 years ago
  • 0.2.2 [deprecated]           ...           10 years ago
  • 0.2.1 [deprecated]           ...           10 years ago
  • 0.2.0 [deprecated]           ...           10 years ago
  • 0.1.5 [deprecated]           ...           10 years ago
  • 0.1.4 [deprecated]           ...           10 years ago
  • 0.1.3 [deprecated]           ...           10 years ago
  • 0.1.2 [deprecated]           ...           10 years ago
  • 0.1.1 [deprecated]           ...           10 years ago
  • 0.0.9 [deprecated]           ...           10 years ago
  • 0.0.8 [deprecated]           ...           10 years ago
  • 0.0.7 [deprecated]           ...           11 years ago
  • 0.0.5 [deprecated]           ...           11 years ago
  • 0.0.4 [deprecated]           ...           11 years ago
  • 0.0.3 [deprecated]           ...           11 years ago
Maintainers (1)
Downloads
Total 7
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (219)

© 2010 - cnpmjs.org x YWFE | Home | YWFE