mime-types
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
102
0
0
80734
12
3478