Coder Social home page Coder Social logo

mooyoul / is-webp-extended Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 2.75 MB

Extended version of is-webp package which supports Animated WebP

Home Page: https://mooyoul.github.io/is-webp-extended/

License: MIT License

TypeScript 32.08% JavaScript 55.67% HTML 12.25%
webp animated-webp

is-webp-extended's Introduction

is-webp-extended

workflow Semantic Release enabled npm bundle size (minified) Renovate enabled MIT license

Extended version of sindresorhus/is-webp, which added Animated WebP detection support. also it does not have any dependency. so tiny!

It takes File or ArrayBuffer and checks given file is WebP, or Animated WebP. If File is provided, package automatically handles additional requirements like seeking, buffering...

Sponsor

Demo

https://mooyoul.github.io/is-webp-extended/

Install

from NPM

$ npm install is-webp-extended --save

from unpkg

<script src="https://unpkg.com/is-webp-extended" type="text/javascript" ></script>

Supported WebP Formats

  • Simple File Format (Lossy)
  • Simple File Format (Lossless)
  • Extended File Format (e.g. Animated WebP)

API

isWebP(input: ArrayBuffer | File) => Promise<boolean>

returns given input is WebP or not

isAnimatedWebP(input: ArrayBuffer | File) => Promise<boolean>

returns given input is Animated WebP or not

Changelog

See CHANGELOG.

Testing

$ npm run test

Build

$ npm run build

Related

License

MIT

See full license on mooyoul.mit-license.org

is-webp-extended's People

Contributors

mooyoul avatar renovate-bot avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

is-webp-extended's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Using npm packages for Renovate presets is now deprecated. Please migrate to repository-based presets instead.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm tslint Unavailable

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update dependency @rollup/plugin-commonjs to v26
  • chore(deps): update dependency @rollup/plugin-node-resolve to v15
  • chore(deps): update dependency @rollup/plugin-typescript to v11
  • chore(deps): update dependency husky to v9
  • chore(deps): update dependency rollup to v4
  • chore(deps): update dependency typescript to v5
  • 🔐 Create all rate-limited PRs at once 🔐

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/main.yml
  • actions/checkout v1
  • actions/setup-node v1
html
docs/index.html
  • normalize 8.0.1
  • github-fork-ribbon-css 0.2.3
  • dropzone 5.9.3
  • dropzone 5.9.3
npm
package.json
  • @prescott/commitlint-preset 1.0.3
  • @prescott/semantic-release-config 1.0.1
  • @prescott/tslint-preset 1.0.1
  • @rollup/plugin-commonjs 22.0.0
  • @rollup/plugin-node-resolve 13.3.0
  • @rollup/plugin-typescript 8.3.2
  • browserstack-local 1.5.0
  • husky 7.0.4
  • intern 4.10.1
  • rollup 2.72.0
  • semantic-release 19.0.2
  • tslint 6.1.3
  • typescript 4.6.4

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.