Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.25 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.25 KB

polyfillist

Get list of required https://cdnjs.cloudflare.com/polyfill/ features based on browserslist

CI codecov

Usage

CLI Usage

Return list of required https://cdnjs.cloudflare.com/polyfill/ features

npx polyfillist

Generate url of polyfill.io bundle

npx polyfillist --url

More command, see npx polyfillist --help

Programmatic Usage

import polyfillist from 'polyfillist'

const features = await polyfillist()

console.log(features)
/* [
  'AbortController',
  'ArrayBuffer.isView',
  'Blob',
  'CharacterData.prototype.after',
  'CharacterData.prototype.before',
  'CharacterData.prototype.replaceWith',
  ...
] */

Contribution

  • Clone this repository
  • Play this song in background (very important)
  • Run deps using yarn install
  • Write your additional feature
  • Don't forget to write the test
  • Open PR

License

This project publish under MIT LIcense, see LICENSE for more details.