Skip to content
JS
Comparison

css-vars-ponyfill vs object-fit-images

Polyfills and shimsPackage data 25 Sept 2026
css-vars-ponyfillv2.4.9, 5 Mar 2024

Client-side support for CSS custom properties (aka "CSS variables") in legacy and modern browsers

$ npm install css-vars-ponyfill
object-fit-imagesv3.2.4, 20 Aug 2018

Polyfill object-fit and object-position on images on IE9, IE10, IE11, Edge, Safari, ...

$ npm install object-fit-images
Metriccss-vars-ponyfillobject-fit-imagesDifference
Weekly downloads175,644101,976css-vars-ponyfill 1.7x higher
12-month download growth+63%-29%css-vars-ponyfill +92 pts
Gzip size---
Minified size---
Dependencies20css-vars-ponyfill 2 more
Unpacked size629 kB36 kBobject-fit-images 17.4x smaller
Latest release2.4.9, 5 Mar 20243.2.4, 20 Aug 2018css-vars-ponyfill 5.5 years more recent
Releases, last 12 months---
First published---
GitHub stars1,4572,014object-fit-images +38%
Open issues53css-vars-ponyfill 2 more
Open pull requests00Same
Contributors---
Commits, last 52 weeks00Same
TypeScript typesBundledNoneDiffers
Module formatESM + CommonJSCommonJSDiffers
Runtimes---
LicenseMITMITSame

Green marks the smaller size or the more recent release. Bold marks the higher count, with no judgement implied. Sizes are for the whole package per Bundlephobia. Growth compares the average of the last 4 weeks with the first 4 weeks of the 52-week series.

css-vars-ponyfill175.6k latest weekobject-fit-images102k latest week
Week of 23 Sept 2025Week of 15 Sept 2026
Weekly npm downloads, 52 weeks. Y axis starts at zero. Values are not smoothed.

css-vars-ponyfill

Major versions
  1. -
Last 5 releases
  1. -
Release count not fetched

object-fit-images

Major versions
  1. -
Last 5 releases
  1. -
Release count not fetched
css-vars-ponyfill

-

object-fit-images

-

css-vars-ponyfill

-

object-fit-images

-

  • Need no runtime dependenciesobject-fit-images (css-vars-ponyfill has 2, object-fit-images has 0)
  • Need both ESM and CommonJS entry pointscss-vars-ponyfill (css-vars-ponyfill: ESM + CommonJS; object-fit-images: CommonJS)
  • Need to load it with require()Both
  • Need TypeScript types in the package itselfcss-vars-ponyfill (css-vars-ponyfill: Bundled; object-fit-images: None)
  • Need the more recent releasecss-vars-ponyfill (2.4.9 on 5 Mar 2024 vs 3.2.4 on 20 Aug 2018)
  • Higher weekly npm downloadscss-vars-ponyfill (175.6k vs 102k)

Each line is generated from the data above.