# htmlminifyify

> HTML minfiy transform for browserify.

Latest version **0.1.1** (published 2015-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install htmlminifyify
pnpm add htmlminifyify
yarn add htmlminifyify
bun add htmlminifyify
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2015-04-26 |
| First published | 2015-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Steven Bassett |
| Maintainers | bassettsj |
| Keywords | minify, browserify |

## Links

- npm: https://www.npmjs.com/package/htmlminifyify
- Repository: git@github.com:bassettsj/htmlminifyify
- Homepage: https://github.com/bassettsj/htmlminifyify
- Issues: https://github.com/bassettsj/htmlminifyify/issues
- npm.io page: https://npm.io/package/htmlminifyify

## Dependencies (3)

- [through](https://npm.io/package/through.md) ~2.3.7
- [string-to-js](https://npm.io/package/string-to-js.md) ~0.0.1
- [html-minifier](https://npm.io/package/html-minifier.md) ~0.7.2

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2015-04-26
- 0.1.0 — 2015-04-26

## README

htmlminifyify
===========

[![Build Status](https://travis-ci.org/bassettsj/htmlminifyify.svg?branch=master)](https://travis-ci.org/bassettsj/htmlminifyify)

> `require()`-able html file with a built in html minifier.

```js
var menuHtml = require('./menu.html');
```

## Installation

```sh
npm install htmlminifyify
```

## Usage

Use as a standard browserify transform in `package.json`, on the cli or programatically (like in a build tool).

### Add to package.json

```json
{
  "name": "mypkg",
  "version": "0.1.0",
  "main": "main.js",
  "browserify": {
    "transform": [ "htmlminifyify" ]
  }
}
```

### CLI

```
browserify -t htmlminifyify entry.js > bundle.js
```

### Programmatically

```js
var gulp = require('gulp');
var browserify = require('browserify');
var htmlminifyify = require('htmlminifyify');

gulp.task('js', [], function () {
  var b = browserify('./entry')
    .transform(htmlminifyify)
    .bundle()
    .pipe(gulp.dest('./dist/js/app-bundle.js'));
  return b;
});
```

### Roadmap

- add string transforms for file extensions.

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