supports-imgix

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i supports-imgix

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

3.46 kB

Total Files

4

Last publish

Collaborators

  • jonny