Socket
Socket
Sign inDemoInstall

mime-types

Package Overview
Dependencies
0
Maintainers
3
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

2

component.json
{
"name": "mime-types",
"description": "ultimate mime type utility",
"description": "The ultimate javascript content-type utility.",
"version": "0.1.0",

@@ -5,0 +5,0 @@ "author": {

@@ -23,3 +23,6 @@ {

"hbs"
],
"text/jsx": [
"jsx"
]
}
{
"name": "mime-types",
"description": "ultimate mime type utility",
"version": "1.0.0",
"description": "The ultimate javascript content-type utility.",
"version": "1.0.1",
"author": {

@@ -28,2 +28,5 @@ "name": "Jonathan Ong",

},
"engines": {
"node": ">= 0.8.0"
},
"scripts": {

@@ -30,0 +33,0 @@ "test": "make test"

@@ -1,2 +0,3 @@

# mime-types [![Build Status](https://travis-ci.org/expressjs/mime-types.svg?branch=master)](https://travis-ci.org/expressjs/mime-types) [![NPM version](https://badge.fury.io/js/mime-types.svg)](https://badge.fury.io/js/mime-types)
# mime-types
[![NPM version](https://badge.fury.io/js/mime-types.svg)](https://badge.fury.io/js/mime-types) [![Build Status](https://travis-ci.org/expressjs/mime-types.svg?branch=master)](https://travis-ci.org/expressjs/mime-types)

@@ -11,6 +12,6 @@ The ultimate javascript content-type utility.

#### Similar to [mime](https://github.com/broofa/node-mime) except:
#### 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`, 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 fallbacks, so do `var type = mime.lookup('unrecognized') || 'application/octet-stream'`.
- Additional mime types are added such as jade and stylus. Feel free to add more!

@@ -17,0 +18,0 @@ - Browser support via Browserify and Component by converting lists to JSON files.

@@ -11,2 +11,3 @@

- `text/x-sass` & `text/x-scss` - https://github.com/janlelis/rubybuntu-mime/blob/master/sass.xml
- `text.jsx` - http://facebook.github.io/react/docs/getting-started.html [[2]](https://github.com/facebook/react/blob/f230e0a03154e6f8a616e0da1fb3d97ffa1a6472/vendor/browser-transforms.js#L210)

@@ -13,0 +14,0 @@ [Sources for node.json types](https://github.com/broofa/node-mime/blob/master/types/node.types)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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