file-is-webp

1.0.0 • Public • Published

is-webp - Check if a given file is a WebP image

Usage

const isWebP = require("file-is-webp");
 
const main = async () => {
    console.log(`Async result: ${await isWebP.testSync("image.jpg")}`);
    console.log(`Sync result: ${isWebP.testSync("image.jpg")}`);
}
 
main();

Readme

Keywords

Package Sidebar

Install

npm i file-is-webp

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

2.32 kB

Total Files

4

Last publish

Collaborators

  • isdampe