Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gildas-lormeau/mhtml-to-html

Convert MHTML to HTML
https://github.com/gildas-lormeau/mhtml-to-html

cli deno mhtml

Last synced: 3 days ago
JSON representation

Convert MHTML to HTML

Awesome Lists containing this project

README

        

# MHTML-TO-HTML

JavaScript library and application for converting MHTML files to single HTML files

## Download

- Download the executable for your OS here: https://github.com/gildas-lormeau/mhtml-to-html/releases

- Rename the file to `mhtml-to-html` and make `mhtml-to-html` executable (Linux, Unix)

```sh
chmod +x mhtml-to-html
```
## Usage

```
mhtml-to-html ... [--output ] [--help] [--enable-scripts] [--version]

Arguments:
: The input MHTML file, wildcards are supported
Options:
--output : The output HTML file (default: input file with .html extension),
only used when a single input file is provided
--help: Show this help message
--enable-scripts: Enable scripts (default: disabled)
--fetch-missing-resources: Fetch missing resources (default: disabled)
--version: Show the version number
```

## Examples
```
mhtml-to-html file.mht
mhtml-to-html file1.mht file2.mht
mhtml-to-html file.mht --output output_file.html
mhtml-to-html *.mht
mhtml-to-html *.mht *.mhtml
mhtml-to-html *.mht --enable-scripts
```

## Install from source

- Install Deno, see https://deno.com

- Install Git, see https://git-scm.com

- Clone the repository

```sh
git clone https://github.com/gildas-lormeau/mhtml-to-html.git
```

- Make `mhtml-to-html` executable (Linux, Unix)
```sh
chmod +x mhtml-to-html
```