Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Commit a978313

Browse files
committed
add EPUB mime type
1 parent 9a73ec5 commit a978313

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

lib/mime.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ var mimeTypes = {
1212
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
1313
fb: 'application/x-fictionbook+xml',
1414
fb2: 'application/x-fictionbook+xml',
15-
odt: 'application/vnd.oasis.opendocument.text'
15+
odt: 'application/vnd.oasis.opendocument.text',
16+
epub: 'application/epub+zip'
1617
};
1718
function lookup(filename) {
1819
var name = filename.toLowerCase();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "file2html",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "JS convertor of files to HTML and CSS code",
55
"main": "./lib/index.js",
66
"types": "./lib/index.d.ts",

src/mime.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const mimeTypes: {[key: string]: string} = {
1010
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
1111
fb: 'application/x-fictionbook+xml',
1212
fb2: 'application/x-fictionbook+xml',
13-
odt: 'application/vnd.oasis.opendocument.text'
13+
odt: 'application/vnd.oasis.opendocument.text',
14+
epub: 'application/epub+zip'
1415
};
1516

1617
export function lookup (filename: string) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy