Advertisement
Guest User

Untitled

a guest
Dec 24th, 2011
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.08 KB | None | 0 0
  1. Mime: {
  2. ".3gp" : "video/3gpp",
  3. ".a" : "application/octet-stream",
  4. ".ai" : "application/postscript",
  5. ".aif" : "audio/x-aiff",
  6. ".aiff" : "audio/x-aiff",
  7. ".asc" : "application/pgp-signature",
  8. ".asf" : "video/x-ms-asf",
  9. ".asm" : "text/x-asm",
  10. ".asx" : "video/x-ms-asf",
  11. ".atom" : "application/atom+xml",
  12. ".au" : "audio/basic",
  13. ".avi" : "video/x-msvideo",
  14. ".bat" : "application/x-msdownload",
  15. ".bin" : "application/octet-stream",
  16. ".bmp" : "image/bmp",
  17. ".bz2" : "application/x-bzip2",
  18. ".c" : "text/x-c",
  19. ".cab" : "application/vnd.ms-cab-compressed",
  20. ".cc" : "text/x-c",
  21. ".chm" : "application/vnd.ms-htmlhelp",
  22. ".class" : "application/octet-stream",
  23. ".com" : "application/x-msdownload",
  24. ".conf" : "text/plain",
  25. ".cpp" : "text/x-c",
  26. ".crt" : "application/x-x509-ca-cert",
  27. ".css" : "text/css",
  28. ".csv" : "text/csv",
  29. ".cxx" : "text/x-c",
  30. ".deb" : "application/x-debian-package",
  31. ".der" : "application/x-x509-ca-cert",
  32. ".diff" : "text/x-diff",
  33. ".djv" : "image/vnd.djvu",
  34. ".djvu" : "image/vnd.djvu",
  35. ".dll" : "application/x-msdownload",
  36. ".dmg" : "application/octet-stream",
  37. ".doc" : "application/msword",
  38. ".dot" : "application/msword",
  39. ".dtd" : "application/xml-dtd",
  40. ".dvi" : "application/x-dvi",
  41. ".ear" : "application/java-archive",
  42. ".eml" : "message/rfc822",
  43. ".eps" : "application/postscript",
  44. ".exe" : "application/x-msdownload",
  45. ".f" : "text/x-fortran",
  46. ".f77" : "text/x-fortran",
  47. ".f90" : "text/x-fortran",
  48. ".flv" : "video/x-flv",
  49. ".for" : "text/x-fortran",
  50. ".gem" : "application/octet-stream",
  51. ".gemspec" : "text/x-script.ruby",
  52. ".gif" : "image/gif",
  53. ".gz" : "application/x-gzip",
  54. ".h" : "text/x-c",
  55. ".htc" : "text/x-component",
  56. ".hh" : "text/x-c",
  57. ".htm" : "text/html",
  58. ".html" : "text/html",
  59. ".ico" : "image/vnd.microsoft.icon",
  60. ".ics" : "text/calendar",
  61. ".ifb" : "text/calendar",
  62. ".iso" : "application/octet-stream",
  63. ".jar" : "application/java-archive",
  64. ".java" : "text/x-java-source",
  65. ".jnlp" : "application/x-java-jnlp-file",
  66. ".jpeg" : "image/jpeg",
  67. ".jpg" : "image/jpeg",
  68. ".js" : "application/javascript",
  69. ".json" : "application/json",
  70. ".log" : "text/plain",
  71. ".m3u" : "audio/x-mpegurl",
  72. ".m4v" : "video/mp4",
  73. ".man" : "text/troff",
  74. ".manifest": "text/cache-manifest",
  75. ".mathml" : "application/mathml+xml",
  76. ".mbox" : "application/mbox",
  77. ".mdoc" : "text/troff",
  78. ".me" : "text/troff",
  79. ".mid" : "audio/midi",
  80. ".midi" : "audio/midi",
  81. ".mime" : "message/rfc822",
  82. ".mml" : "application/mathml+xml",
  83. ".mng" : "video/x-mng",
  84. ".mov" : "video/quicktime",
  85. ".mp3" : "audio/mpeg",
  86. ".mp4" : "video/mp4",
  87. ".mp4v" : "video/mp4",
  88. ".mpeg" : "video/mpeg",
  89. ".mpg" : "video/mpeg",
  90. ".ms" : "text/troff",
  91. ".msi" : "application/x-msdownload",
  92. ".odp" : "application/vnd.oasis.opendocument.presentation",
  93. ".ods" : "application/vnd.oasis.opendocument.spreadsheet",
  94. ".odt" : "application/vnd.oasis.opendocument.text",
  95. ".ogg" : "application/ogg",
  96. ".ogv" : "video/ogg",
  97. ".p" : "text/x-pascal",
  98. ".pas" : "text/x-pascal",
  99. ".pbm" : "image/x-portable-bitmap",
  100. ".pdf" : "application/pdf",
  101. ".pem" : "application/x-x509-ca-cert",
  102. ".pgm" : "image/x-portable-graymap",
  103. ".pgp" : "application/pgp-encrypted",
  104. ".pkg" : "application/octet-stream",
  105. ".pl" : "text/x-script.perl",
  106. ".pm" : "text/x-script.perl-module",
  107. ".png" : "image/png",
  108. ".pnm" : "image/x-portable-anymap",
  109. ".ppm" : "image/x-portable-pixmap",
  110. ".pps" : "application/vnd.ms-powerpoint",
  111. ".ppt" : "application/vnd.ms-powerpoint",
  112. ".ps" : "application/postscript",
  113. ".psd" : "image/vnd.adobe.photoshop",
  114. ".py" : "text/x-script.python",
  115. ".qt" : "video/quicktime",
  116. ".ra" : "audio/x-pn-realaudio",
  117. ".rake" : "text/x-script.ruby",
  118. ".ram" : "audio/x-pn-realaudio",
  119. ".rar" : "application/x-rar-compressed",
  120. ".rb" : "text/x-script.ruby",
  121. ".rdf" : "application/rdf+xml",
  122. ".roff" : "text/troff",
  123. ".rpm" : "application/x-redhat-package-manager",
  124. ".rss" : "application/rss+xml",
  125. ".rtf" : "application/rtf",
  126. ".ru" : "text/x-script.ruby",
  127. ".s" : "text/x-asm",
  128. ".sgm" : "text/sgml",
  129. ".sgml" : "text/sgml",
  130. ".sh" : "application/x-sh",
  131. ".sig" : "application/pgp-signature",
  132. ".snd" : "audio/basic",
  133. ".so" : "application/octet-stream",
  134. ".svg" : "image/svg+xml",
  135. ".svgz" : "image/svg+xml",
  136. ".swf" : "application/x-shockwave-flash",
  137. ".t" : "text/troff",
  138. ".tar" : "application/x-tar",
  139. ".tbz" : "application/x-bzip-compressed-tar",
  140. ".tcl" : "application/x-tcl",
  141. ".tex" : "application/x-tex",
  142. ".texi" : "application/x-texinfo",
  143. ".texinfo" : "application/x-texinfo",
  144. ".text" : "text/plain",
  145. ".tif" : "image/tiff",
  146. ".tiff" : "image/tiff",
  147. ".torrent" : "application/x-bittorrent",
  148. ".tr" : "text/troff",
  149. ".txt" : "text/plain",
  150. ".vcf" : "text/x-vcard",
  151. ".vcs" : "text/x-vcalendar",
  152. ".vrml" : "model/vrml",
  153. ".war" : "application/java-archive",
  154. ".wav" : "audio/x-wav",
  155. ".webm" : "video/webm",
  156. ".wma" : "audio/x-ms-wma",
  157. ".wmv" : "video/x-ms-wmv",
  158. ".wmx" : "video/x-ms-wmx",
  159. ".wrl" : "model/vrml",
  160. ".wsdl" : "application/wsdl+xml",
  161. ".xbm" : "image/x-xbitmap",
  162. ".xhtml" : "application/xhtml+xml",
  163. ".xls" : "application/vnd.ms-excel",
  164. ".xml" : "application/xml",
  165. ".xpm" : "image/x-xpixmap",
  166. ".xsl" : "application/xml",
  167. ".xslt" : "application/xslt+xml",
  168. ".yaml" : "text/yaml",
  169. ".yml" : "text/yaml",
  170. ".zip" : "application/zip",
  171. }
  172.  
  173. Mime::mimeType: (ext, fallback) ->
  174. fallback ?= 'application/octet-stream'
  175. this[ext] || fallback
  176.  
  177. module.exports: Mime
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement