npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mhtml-to-html

v2.0.1

Published

JavaScript library for parsing MHTML files and converting them into single HTML files

Downloads

15,410

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)

chmod +x mhtml-to-html

Usage

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 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

Convert MHTML Files Online

Use Mhtml Wizard to view and convert MHTML files online, see https://erwannlc.github.io/mhtml-wizard

Install

  • Deno via JSR:
deno add jsr:@mhtml-to-html/mhtml-to-html
  • Node.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.git
  • Deno:

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

    • Make mhtml-to-html executable (Linux, Unix)

    chmod +x mhtml-to-html
  • Node.js:

    • Install Node.js, see https://nodejs.org

    • Install the dependencies

    npm install
    • Linux, Unix:

      • Replace mhtml-to-html with mhtml-to-html-node.js
      mv mhtml-to-html-node.js mhtml-to-html
      • Make mhtml-to-html executable
      chmod +x mhtml-to-html
    • Windows:

      • Replace mhtml-to-html.bat with mhtml-to-html-node.bat
      move /Y mhtml-to-html-node.bat mhtml-to-html.bat