# mini-html

> Minifies a block of HTML or a HTML file

Latest version **1.0.3** (published 2015-05-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install mini-html
pnpm add mini-html
yarn add mini-html
bun add mini-html
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2015-05-07 |
| First published | 2015-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ben@anyappboard.com |
| Maintainers | benlowry |
| Keywords | minify, html |

## Links

- npm: https://www.npmjs.com/package/mini-html
- Repository: https://github.com/anyappboard/mini-html
- Issues: https://github.com/anyappboard/mini-html/issues
- npm.io page: https://npm.io/package/mini-html

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2015-05-07
- 1.0.2 — 2015-05-07
- 1.0.1 — 2015-05-07
- 1.0.0 — 2015-05-06

## README

# miniHTML
A very simple HTML minifier.  It will almost definitely break your site
if you use PRE or CODE or TEXTAREA with formatting defined by line breaks
and tabs etc.  Otherwise it will aggressively shrink your HTML.

## Usage 
Import the node module:

	`npm install mini-html`

Minify a HTML file:

	var miniHTML = require("mini-html");
	var minimized = miniHTML("<html> \n\t<head> \n\t<.......\n\n\n\n\n\t\t\t\t\t\t\t\t\t<body>..."); 
	console.log(minimized); // <html><head><..........
	
Minify a HTML file:

    var minimized = miniHTML(null, __dirname + "/index.html");
	
Minify a HTML file and save it

    miniHTML(null, __dirname + "/index.html", true);

---
_Source: https://npm.io/package/mini-html · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
