biofriction-wp-theme/node_modules/is-gif/index.js

13 lines
182 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
'use strict';
const fileType = require('file-type');
module.exports = input => {
const match = fileType(input);
if (!match) {
return false;
}
return match.ext === 'gif';
};