1.0.34 • Published 11 months ago
mhtml-to-html v1.0.34
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-htmland makemhtml-to-htmlexecutable (Linux, Unix)
chmod +x mhtml-to-htmlUsage
mhtml-to-html <input>... [--output <output>] [--help] [--enable-scripts] [--fetch-missing-resources] [--version]
Arguments:
<input>: The input MHTML file, wildcards are supported
Options:
--output <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 numberExamples
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-scriptsConvert MHTML Files Online
Go to https://gildas-lormeau.github.io/mhtml-to-html.html
Install
Deno via JSR:
deno add jsr:@mhtml-to-html/mhtml-to-htmlNode.js/Deno via NPM:
npm install mhtml-to-html
Import
Deno via JSR:
import { convert } from "@mhtml-to-html/mhtml-to-html";Deno via NPM:
import { convert } from "mhtml-to-html/deno";Node.js:
import { convert } from "mhtml-to-html";Client-side:
import { convert } from "mhtml-to-html/browser";
Install from Source
Install Git, see https://git-scm.com
Clone the repository
git clone https://github.com/gildas-lormeau/mhtml-to-html.gitDeno:
Install Deno, see https://deno.com
Make
mhtml-to-htmlexecutable (Linux, Unix)
chmod +x mhtml-to-htmlNode.js:
Install Node.js, see https://nodejs.org
Install the dependencies
npm installLinux, Unix:
- Replace
mhtml-to-htmlwithmhtml-to-html-node.js
mv mhtml-to-html-node.js mhtml-to-html- Make
mhtml-to-htmlexecutable
chmod +x mhtml-to-html- Replace
Windows:
- Replace
mhtml-to-html.batwithmhtml-to-html-node.bat
move /Y mhtml-to-html-node.bat mhtml-to-html.bat- Replace