Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including mime-extended with all npm packages installed. Try it out:

var mimeExtended = require("mime-extended")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

mime-extended v1.0.1

DEPRECATED - Please use mime-types instead.

DEPRECATED - Please use mime-types instead.


Extends the mime module with two main features:

  • Adds some content types for preprocessor/transpiler languages
  • Adds mime.contentType()

Additional types

Checkout lib/types.json for additional content types. Feel free to make PRs to add your own!


An easy way to create a content-type header just by setting an extension or mime type, just like how Express and Koa works!

mime.contentType('html') // => text/html; charset=utf-8
mime.contentType('json') // => application/json


This augments the mime module globally. It also loosely depends on mime, so you might want to pin mime in your app.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free