MHTML files to a single
mhtml2html is compatible with Node >= v4.3.2.
It has only been tested with MHTML files built and used with the latest versions of Chrome
'use strict';const mhtml2html = ;fs;
You can also use it from the command line by running:
mhtml2html <path_to_mhtml_file> <output_file_path>
Include the mhtml2html script under the dist folder:
mhtml2html.parse(mhtml_string, html_only = false);
mhtml2html.convert(mhtml_string or mhtml_object);
To build and test mhtml2html:
npm installfrom the root directory.
./node_modules/gulp/bin/gulp.jsto build the scripts and run tests.
Released under the MIT License