{"repo":"jshttp/mime-types","free":true,"listed":false,"github":"https://github.com/jshttp/mime-types","clone":"git clone https://github.com/jshttp/mime-types.git","description":"The ultimate javascript content-type utility.","language":"JavaScript","stars":1472,"topics":["javascript","nodejs","mime","mime-types"],"license":"MIT","category":"dev-tools","readme_excerpt":"mime-types [![NPM Version][npm-version-image]][npm-url] [![NPM Downloads][npm-downloads-image]][npm-url] [![Node.js Version][node-version-image]][node-version-url] [![Build Status][ci-image]][ci-url] [![Test Coverage][coveralls-image]][coveralls-url] The ultimate javascript content-type utility. Similar to the mime@1.x module, except: - No fallbacks. Instead of naively returning the first available type, mime-types simply returns false , so do var type = mime.lookup('unrecognized') 'application/octet-stream' . - No new Mime() business, so you could do var lookup = require('mime-types').lookup . - No .define() functionality - Bug fixes for .lookup(path) Otherwise, the API is compatible with mime 1.x. Install This is a Node.js module available through the npm registry. Installation is done using the npm install command: Note on MIME Type Data and Semver This package considers the programmatic api as the semver compatibility. Additionally, the package which provides the MIME data for this package ( mime-db ) also considers it's programmatic api as the semver contract. This means the MIME type resolution is not considered in the semver bumps. In the past the version of mime-db was pinned to give two decision points when adopting MIME data changes. This is no longer true. We still update the mime-db package here as a minor release when necessary, but will use a ^ range going forward. This means that if you want to pin your mime-db data you will need to do it in your application. W","default_branch":null,"files":null,"tree":[],"storefront":"/r/jshttp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jshttp/mime-types/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}