Permalink
Browse files

Added reversed Content Types list

  • Loading branch information...
1 parent 025cb66 commit 1d760b0266d31db030369b2e842a99c4c83cb97a Andris Reinman committed Jan 13, 2012
Showing with 43 additions and 2 deletions.
  1. +40 −0 content-types-reversed.js
  2. +2 −1 index.js
  3. +1 −1 package.json
View
@@ -0,0 +1,40 @@
+// list of mime types
+module.exports = {
+ "application/msword": "doc",
+ "application/pdf": "pdf",
+ "application/rss+xml": "rss",
+ "application/vnd.ms-excel": "xls",
+ "application/vnd.ms-powerpoint": "ppt",
+ "application/vnd.oasis.opendocument.presentation": "odp",
+ "application/vnd.oasis.opendocument.spreadsheet": "ods",
+ "application/vnd.oasis.opendocument.text": "odt",
+ "application/vnd.sun.xml.calc": "sxc",
+ "application/vnd.sun.xml.writer": "sxw",
+ "audio/basic": "au",
+ "audio/flac": "flac",
+ "audio/mid": "mid",
+ "audio/mp4": "m4a",
+ "audio/mpeg": "mp3",
+ "audio/ogg": "ogg",
+ "audio/x-aiff": "aif",
+ "audio/x-wav": "wav",
+ "image/gif": "gif",
+ "image/jpeg": "jpg",
+ "image/png": "png",
+ "image/tiff": "tif",
+ "image/vnd.wap.wbmp": "wbmp",
+ "image/x-ms-bmp": "bmp",
+ "text/calendar": "ics",
+ "text/comma-separated-values": "csv",
+ "text/css": "css",
+ "text/html": "html",
+ "text/plain": "txt",
+ "text/x-vcard": "vcf",
+ "video/mp4": "mp4",
+ "video/mpeg": "mpeg",
+ "video/ogg": "ogv",
+ "video/quicktime": "mov",
+ "video/x-msvideo": "avi",
+ "application/zip": "zip",
+ "application/x-rar-compressed": "rar"
+};
View
@@ -1,3 +1,4 @@
module.exports = require("./mime-functions");
-module.exports.contentTypes = require("./content-types");
+module.exports.contentTypes = require("./content-types");
+module.exports.contentTypesReversed = require("./content-types-reversed");
View
@@ -1,7 +1,7 @@
{
"name": "mimelib",
"description": "MIME functions to encode/decode e-mails etc.",
- "version": "0.1.13",
+ "version": "0.1.14",
"author" : "Andris Reinman",
"homepage":"http://github.com/andris9/mimelib",
"maintainers":[

0 comments on commit 1d760b0

Please sign in to comment.