Socket
Socket
Sign inDemoInstall

mime-types

Package Overview
Dependencies
1
Maintainers
3
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

HISTORY.md

45

package.json
{
"name": "mime-types",
"description": "The ultimate javascript content-type utility.",
"version": "2.0.0",
"author": {
"name": "Jonathan Ong",
"email": "me@jongleberry.com",
"url": "http://jongleberry.com",
"twitter": "https://twitter.com/jongleberry"
},
"version": "2.0.1",
"contributors": [
{
"name": "Jeremiah Senkpiel",
"email": "fishrock123@rocketmail.com",
"url": "https://searchbeam.jit.su",
"twitter": "https://twitter.com/fishrock123"
}
"Jeremiah Senkpiel <fishrock123@rocketmail.com> (https://searchbeam.jit.su)",
"Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
],
"license": "MIT",
"keywords": [
"mime",
"types"
],
"repository": "jshttp/mime-types",
"license": "MIT",
"dependencies": {

@@ -26,18 +20,17 @@ "mime-db": "~1.0.1"

"istanbul": "0",
"mocha": "1",
"should": "3"
"mocha": "1"
},
"files": [
"HISTORY.md",
"LICENSE",
"index.js"
],
"engines": {
"node": ">= 0.8.0"
"node": ">= 0.6"
},
"scripts": {
"test": "mocha --reporter spec --require should test/test.js",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --require should test/test.js",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot --require should test/test.js"
},
"files": ["index.js"],
"keywords": [
"mime",
"types"
]
"test": "mocha --reporter spec test/test.js",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/test.js",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot test/test.js"
}
}
# mime-types
[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Dependency Status][david-image]][david-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![Node.js Version][node-version-image]][node-version-url]
[![Build Status][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]
The ultimate javascript content-type utility.
### Install
Similar to [node-mime](https://github.com/broofa/node-mime), except:
```sh
$ npm install mime-types
```
#### Similar to [node-mime](https://github.com/broofa/node-mime), except:
- __No fallbacks.__ Instead of naively returning the first available type, `mime-types` simply returns `false`,

@@ -24,7 +17,14 @@ so do `var type = mime.lookup('unrecognized') || 'application/octet-stream'`.

- Additional mime types are added such as jade and stylus via [mime-db](https://github.com/jshttp/mime-db)
- No `.define()` functionality
Otherwise, the API is compatible.
### Adding Types
## Install
```sh
$ npm install mime-types
```
## Adding Types
All mime types are based on [mime-db](https://github.com/jshttp/mime-db),

@@ -91,17 +91,11 @@ so open a PR there if you'd like to add mime types.

[npm-image]: https://img.shields.io/npm/v/mime-types.svg?style=flat-square
[npm-image]: https://img.shields.io/npm/v/mime-types.svg?style=flat
[npm-url]: https://npmjs.org/package/mime-types
[github-tag]: http://img.shields.io/github/tag/jshttp/mime-types.svg?style=flat-square
[github-url]: https://github.com/jshttp/mime-types/tags
[travis-image]: https://img.shields.io/travis/jshttp/mime-types.svg?style=flat-square
[node-version-image]: https://img.shields.io/badge/node.js-%3E%3D_0.6-brightgreen.svg?style=flat
[node-version-url]: http://nodejs.org/download/
[travis-image]: https://img.shields.io/travis/jshttp/mime-types.svg?style=flat
[travis-url]: https://travis-ci.org/jshttp/mime-types
[coveralls-image]: https://img.shields.io/coveralls/jshttp/mime-types.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/jshttp/mime-types?branch=master
[david-image]: http://img.shields.io/david/jshttp/mime-types.svg?style=flat-square
[david-url]: https://david-dm.org/jshttp/mime-types
[license-image]: http://img.shields.io/npm/l/mime-types.svg?style=flat-square
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/mime-types.svg?style=flat-square
[coveralls-image]: https://img.shields.io/coveralls/jshttp/mime-types.svg?style=flat
[coveralls-url]: https://coveralls.io/r/jshttp/mime-types
[downloads-image]: https://img.shields.io/npm/dm/mime-types.svg?style=flat
[downloads-url]: https://npmjs.org/package/mime-types
[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat-square
[gittip-url]: https://www.gittip.com/jonathanong/
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc