Sha256: d9b445b945321bb5fb820a0d5eb005722dd633663a7fb26e3ef0ae3a13412a20

Contents?: true

Size: 1.66 KB

Versions: 13

Compression:

Stored size: 1.66 KB

Contents

[`core-js-compat` package](https://github.com/zloirock/core-js/packages/core-js-compat) contains data about the necessity of [`core-js`](https://github.com/zloirock/core-js) modules and API for getting a list of required core-js modules by browserslist query.

```js
const {
  list,              // array of required modules
  targets,           // object with targets for each module
} = require('core-js-compat')({
  targets: '> 2.5%', // browserslist query
  filter: 'es.',     // optional filter - string-prefix, regexp or list of modules
});

console.log(targets);
/* =>
{
  'es.symbol.description': { ios: '12.0-12.1' },
  'es.array.reverse': { ios: '12.0-12.1' },
  'es.string.replace': { firefox: '63', ios: '12.0-12.1' },
  'es.string.trim': { ios: '12.0-12.1' },
  'es.promise': { firefox: '63' },
  'es.promise.finally': { firefox: '63' },
  'es.array-buffer.slice': { ios: '12.0-12.1' },
  'es.typed-array.int8-array': { ios: '12.0-12.1' },
  'es.typed-array.uint8-array': { ios: '12.0-12.1' },
  'es.typed-array.uint8-clamped-array': { ios: '12.0-12.1' },
  'es.typed-array.int16-array': { ios: '12.0-12.1' },
  'es.typed-array.uint16-array': { ios: '12.0-12.1' },
  'es.typed-array.int32-array': { ios: '12.0-12.1' },
  'es.typed-array.uint32-array': { ios: '12.0-12.1' },
  'es.typed-array.float32-array': { ios: '12.0-12.1' },
  'es.typed-array.float64-array': { ios: '12.0-12.1' },
  'es.typed-array.from': { ios: '12.0-12.1' },
  'es.typed-array.of': { ios: '12.0-12.1' }
}
*/
```

If you want to add new / update data about modules required for target engines, [follow this instruction](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md#updating-core-js-compat-data).

Version data entries

13 entries across 13 versions & 5 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/core-js-compat/README.md
disco_app-0.18.2 test/dummy/node_modules/core-js-compat/README.md
condenser-0.0.8 lib/condenser/processors/node_modules/core-js-compat/README.md
learn_create-0.0.22 lib/templates/javascript_lab_template/node_modules/core-js-compat/README.md
jester-data-8.0.0 node_modules/core-js-compat/README.md
ezii-os-5.2.1 node_modules/core-js-compat/README.md
ezii-os-2.0.1 node_modules/core-js-compat/README.md
ezii-os-1.1.0 node_modules/core-js-compat/README.md
ezii-os-1.0.0 node_modules/core-js-compat/README.md
condenser-0.0.7 lib/condenser/processors/node_modules/core-js-compat/README.md
ezii-os-0.0.0.1.0 node_modules/core-js-compat/README.md
ezii-os-0.0.0.0.1 node_modules/core-js-compat/README.md
condenser-0.0.5 lib/condenser/processors/node_modules/core-js-compat/README.md