13 lines
182 B
JavaScript
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';
|
||
|
};
|