{"name":"core-js","version":"3.40.0","keywords":["ES3","ES5","ES6","ES7","ES2015","ES2016","ES2017","ES2018","ES2019","ES2020","ES2021","ES2022","ES2023","ES2024","ECMAScript 3","ECMAScript 5","ECMAScript 6","ECMAScript 7","ECMAScript 2015","ECMAScript 2016","ECMAScript 2017","ECMAScript 2018","ECMAScript 2019","ECMAScript 2020","ECMAScript 2021","ECMAScript 2022","ECMAScript 2023","ECMAScript 2024","Map","Set","WeakMap","WeakSet","TypedArray","Promise","Observable","Symbol","Iterator","AsyncIterator","URL","URLSearchParams","queueMicrotask","setImmediate","structuredClone","polyfill","ponyfill","shim"],"author":{"url":"http://zloirock.ru","name":"Denis Pushkarev","email":"zloirock@zloirock.ru"},"license":"MIT","_id":"core-js@3.40.0","homepage":"https://github.com/zloirock/core-js#readme","bugs":{"url":"https://github.com/zloirock/core-js/issues"},"dist":{"shasum":"2773f6b06877d8eda102fc42f828176437062476","tarball":"http://registry-npm.ywwl.com/core-js/download/core-js-3.40.0.tgz","fileCount":3563,"integrity":"sha512-7vsMc/Lty6AGnn7uFpYT56QesI5D2Y/UkgKounk87OP9Z2H9Z8kj6jzcSGAxFmUtDOS0ntK6lbQz+Nsa0Jj6mQ==","signatures":[{"sig":"MEYCIQDTKQ7D8K9edFEYhAqJywjZeT+JixFRtvcR1w2km/wo0wIhAKgOVCa3cp/Yle7LCKrwojl8waxCXpwlWo++DxHFn2iq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1262571,"size":295529,"noattachment":false,"key":"/core-js/-/core-js-3.40.0.tgz"},"main":"index.js","type":"commonjs","funding":{"url":"https://opencollective.com/core-js","type":"opencollective"},"gitHead":"6e493925cb4348e99385b5aca6b0ff75ef39b48f","scripts":{"postinstall":"node -e \"try{require('./postinstall')}catch(e){}\""},"_npmUser":{"name":"zloirock","email":"zloirock@zloirock.ru"},"repository":{"url":"git+https://github.com/zloirock/core-js.git","type":"git","directory":"packages/core-js"},"_npmVersion":"11.0.0","description":"Standard library","directories":{},"_nodeVersion":"23.5.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core-js_3.40.0_1736274142315_0.6880900597954989","host":"s3://npm-registry-packages-npm-production"},"readme":"![logo](https://user-images.githubusercontent.com/2213682/146607186-8e13ddef-26a4-4ebf-befd-5aac9d77c090.png)\n\n<div align=\"center\">\n\n[![fundraising](https://opencollective.com/core-js/all/badge.svg?label=fundraising)](https://opencollective.com/core-js) [![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md) [![version](https://img.shields.io/npm/v/core-js.svg)](https://www.npmjs.com/package/core-js) [![core-js downloads](https://img.shields.io/npm/dm/core-js.svg?label=npm%20i%20core-js)](https://npm-stat.com/charts.html?package=core-js&package=core-js-pure&package=core-js-compat&from=2014-11-18)\n\n</div>\n\n**I highly recommend reading this: [So, what's next?](https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md)**\n---\n\n> Modular standard library for JavaScript. Includes polyfills for [ECMAScript up to 2023](https://github.com/zloirock/core-js#ecmascript): [promises](https://github.com/zloirock/core-js#ecmascript-promise), [symbols](https://github.com/zloirock/core-js#ecmascript-symbol), [collections](https://github.com/zloirock/core-js#ecmascript-collections), iterators, [typed arrays](https://github.com/zloirock/core-js#ecmascript-typed-arrays), many other features, [ECMAScript proposals](https://github.com/zloirock/core-js#ecmascript-proposals), [some cross-platform WHATWG / W3C features and proposals](#web-standards) like [`URL`](https://github.com/zloirock/core-js#url-and-urlsearchparams). You can load only required features or use it without global namespace pollution.\n\n## Raising funds\n\n`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**](https://opencollective.com/core-js), [**Patreon**](https://patreon.com/zloirock), [**Boosty**](https://boosty.to/zloirock), **Bitcoin ( bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz )**, [**Alipay**](https://user-images.githubusercontent.com/2213682/219464783-c17ad329-17ce-4795-82a7-f609493345ed.png).\n\n---\n\n<a href=\"https://opencollective.com/core-js/sponsor/0/website\" target=\"_blank\"><img src=\"https://opencollective.com/core-js/sponsor/0/avatar.svg\"></a><a href=\"https://opencollective.com/core-js/sponsor/1/website\" target=\"_blank\"><img src=\"https://opencollective.com/core-js/sponsor/1/avatar.svg\"></a><a href=\"https://opencollective.com/core-js/sponsor/2/website\" target=\"_blank\"><img src=\"https://opencollective.com/core-js/sponsor/2/avatar.svg\"></a><a href=\"https://opencollective.com/core-js/sponsor/3/website\" target=\"_blank\"><img src=\"https://opencollective.com/core-js/sponsor/3/avatar.svg\"></a><a href=\"https://opencollective.com/core-js/sponsor/4/website\" target=\"_blank\"><img src=\"https://opencollective.com/core-js/sponsor/4/avatar.svg\"></a><a href=\"https://opencollective.com/core-js/sponsor/5/website\" target=\"_blank\"><img src=\"https://opencollective.com/core-js/sponsor/5/avatar.svg\"></a><a href=\"https://opencollective.com/core-js/sponsor/6/website\" target=\"_blank\"><img src=\"https://opencollective.com/core-js/sponsor/6/avatar.svg\"></a><a href=\"https://opencollective.com/core-js/sponsor/7/website\" target=\"_blank\"><img src=\"https://opencollective.com/core-js/sponsor/7/avatar.svg\"></a><a href=\"https://opencollective.com/core-js/sponsor/8/website\" target=\"_blank\"><img src=\"https://opencollective.com/core-js/sponsor/8/avatar.svg\"></a><a href=\"https://opencollective.com/core-js/sponsor/9/website\" target=\"_blank\"><img src=\"https://opencollective.com/core-js/sponsor/9/avatar.svg\"></a><a href=\"https://opencollective.com/core-js/sponsor/10/website\" target=\"_blank\"><img src=\"https://opencollective.com/core-js/sponsor/10/avatar.svg\"></a><a href=\"https://opencollective.com/core-js/sponsor/11/website\" target=\"_blank\"><img src=\"https://opencollective.com/core-js/sponsor/11/avatar.svg\"></a>\n\n---\n\n<a href=\"https://opencollective.com/core-js#backers\" target=\"_blank\"><img src=\"https://opencollective.com/core-js/backers.svg?width=890\"></a>\n\n---\n\n[*Example of usage*](https://tinyurl.com/2mknex43):\n```js\nimport 'core-js/actual';\n\nPromise.resolve(42).then(it => console.log(it)); // => 42\n\nArray.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]\n\n[1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2]\n\n(function * (i) { while (true) yield i++; })(1)\n  .drop(1).take(5)\n  .filter(it => it % 2)\n  .map(it => it ** 2)\n  .toArray(); // => [9, 25]\n\nstructuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])\n```\n\n*You can load only required features*:\n```js\nimport 'core-js/actual/promise';\nimport 'core-js/actual/set';\nimport 'core-js/actual/iterator';\nimport 'core-js/actual/array/from';\nimport 'core-js/actual/array/flat-map';\nimport 'core-js/actual/structured-clone';\n\nPromise.resolve(42).then(it => console.log(it)); // => 42\n\nArray.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]\n\n[1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2]\n\n(function * (i) { while (true) yield i++; })(1)\n  .drop(1).take(5)\n  .filter(it => it % 2)\n  .map(it => it ** 2)\n  .toArray(); // => [9, 25]\n\nstructuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])\n```\n\n*Or use it without global namespace pollution*:\n```js\nimport Promise from 'core-js-pure/actual/promise';\nimport Set from 'core-js-pure/actual/set';\nimport Iterator from 'core-js-pure/actual/iterator';\nimport from from 'core-js-pure/actual/array/from';\nimport flatMap from 'core-js-pure/actual/array/flat-map';\nimport structuredClone from 'core-js-pure/actual/structured-clone';\n\nPromise.resolve(42).then(it => console.log(it)); // => 42\n\nfrom(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]\n\nflatMap([1, 2], it => [it, it]); // => [1, 1, 2, 2]\n\nIterator.from(function * (i) { while (true) yield i++; }(1))\n  .drop(1).take(5)\n  .filter(it => it % 2)\n  .map(it => it ** 2)\n  .toArray(); // => [9, 25]\n\nstructuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])\n```\n\n**It's a global version (first 2 examples), for more info see [`core-js` documentation](https://github.com/zloirock/core-js/blob/master/README.md).**\n","publish_time":1736274142675,"maintainers":[{"name":"zloirock","email":"zloirock@zloirock.ru"}],"_cnpm_publish_time":1736274142675,"dist-tags":{"alpha":"4.0.0-alpha.1","beta":"3.0.0-beta.20","latest":"3.51.0"}}