Socket
Socket
Sign inDemoInstall

denfield-webp-hero

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    denfield-webp-hero

webp image format polyfill for browsers


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
1.09 MB
Created
Weekly downloads
 

Readme

Source

denfield-webp-hero

browser polyfill for the webp image format

This is a clone of webp-hero package with support for background images.

Please see original documentation [https://github.com/chase-moskal/webp-hero].

You can pass list of selectors to be find and the script will recognize if this is an image or div element with background-image style.

Example
<script>
	var webpMachine = new webpHero.WebpMachine()
	webpMachine.polyfillDocument({selectors: "img, .bg"})
</script>

Keywords

FAQs

Last updated on 27 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc