1.0.0 • Published 5 years ago

supports-imgix v1.0.0

Weekly downloads
93
License
MIT
Repository
github
Last release
5 years ago

supports-imgix Build Status

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