mimetype-constants

MIME type constants for JavaScript developers


Keywords
MIME, MIME type, MIME types, content type, content types, content-type, content-types, javascript, library, mime-type, mime-types, module, npm, npm-module, npm-package, package
License
Apache-2.0
Install
npm install mimetype-constants@1.1.0

Documentation

icon

MimeTypes.js Build and test Publish to npm npm npm

A structured collection of MIME type constants to use in your JavaScript projects.

Installation

npm i mimetype-constants

Usage

Replace this sort of thing...

"application/json"

with this...

MimeTypes.Application.Json

Pull requests welcome!

Also for JavaScript developers

icon RegexToolbox.js: Regular expression tools for JavaScript developers

MimeTypes for other languages

icon MimeTypes for .NET

icon MimeTypes for Java

icon MimeTypes for Kotlin