file-is-webp
v1.0.0
Published
Check whether a given file is a WebP image.
Downloads
7
Readme
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();