0.2.0 • Published 7 years ago

webp.js v0.2.0

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

webp.js

npm Build Status Coverage Status

webp.js is a library for webp detection.

Here's an example:

var webpjs = require('webp.js');
if (webpjs()) {
  //do something
}

By using cookie, you can process your images at the backend.

var webpjs = require('webp.js');
if (webpjs({ type:'cookie' })) {
  //do something
}

Get the cookies at the backend, if the value of webp is 1, that means current browser support webp.

0.2.0

7 years ago

0.1.0

7 years ago

0.0.0

7 years ago