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

13 lines
182 B
JavaScript

'use strict';
const fileType = require('file-type');
module.exports = input => {
const match = fileType(input);
if (!match) {
return false;
}
return match.ext === 'gif';
};