| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 1 | 'use strict'; |
| 2 | const fileType = require('file-type'); | ||||
| 3 | |||||
| 4 | module.exports = input => { | ||||
| 5 | const match = fileType(input); | ||||
| 6 | |||||
| 7 | if (!match) { | ||||
| 8 | return false; | ||||
| 9 | } | ||||
| 10 | |||||
| 11 | return match.ext === 'gif'; | ||||
| 12 | }; | ||||