[go: up one dir, main page]

This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

mime-extended

1.0.1 • Public • Published

DEPRECATED - Please use mime-types instead.

MIME EXTENDED

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!

mime.contentType(type)

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

Notes

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

Readme

Keywords

none

Package Sidebar

Install

npm i mime-extended

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • dougwilson
  • fishrock123
  • jongleberry
  • defunctzombie