supports-imgix
List of mime types that Imgix can process
A simple list of MIME types that Imgix can process. Useful for validating the files that users upload through your website.
Install
$ npm install supports-imgix
Usage
const supportsImgix = require('supports-imgix');
supportsImgix('image/png');
//=> true
supportsImgix('image/webp');
//=> false
supportsImgix.supportedTypes
//=> ['application/illustrator','application/vnd.adobe.illustrator','image/bmp',...]
API
supportsImgix(mimeType)
mimeType
Type: string
supportsImgix.supportedTypes
Array of MIME types that Imgix can process.
License
MIT © Jonny Burger