# minimum

> Compress html/css/js into a single html file.

Latest version **0.0.5** (published 2013-07-29) · 0 weekly downloads

## Install

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

Provides the command `minimum`.

## 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.0.5 |
| Published | 2013-07-29 |
| First published | 2013-05-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10 |
| Dependencies | 11 |
| Known vulnerabilities | 0 (+4 in 3 direct dependencies) |
| Install scripts | no |
| Author | Craig Rogers |
| Maintainers | craigr_ |

## Links

- npm: https://www.npmjs.com/package/minimum
- Repository: https://github.com/twentyrogersc/minimum
- npm.io page: https://npm.io/package/minimum

## Dependencies (11)

- [async](https://npm.io/package/async.md) 0.2.8
- [jsdom](https://npm.io/package/jsdom.md) 0.6.1
- [colors](https://npm.io/package/colors.md) 0.6.0-1
- [stylus](https://npm.io/package/stylus.md) 0.32.1
- [watchr](https://npm.io/package/watchr.md) 2.4.3
- [readdirp](https://npm.io/package/readdirp.md) 0.2.4
- [clean-css](https://npm.io/package/clean-css.md) 1.0.2
- [commander](https://npm.io/package/commander.md) 1.1.1
- [uglify-js](https://npm.io/package/uglify-js.md) 2.3.0
- [coffee-script](https://npm.io/package/coffee-script.md) 1.6.2
- [html-minifier](https://npm.io/package/html-minifier.md) 0.5.2

## Recent versions

- 0.0.5 (latest) — 2013-07-29
- 0.0.4 — 2013-07-05
- 0.0.3 — 2013-07-04
- 0.0.2 — 2013-05-08
- 0.0.1 — 2013-05-08

## README

# minimum
Minify html/js/css into a single document.

## Installation
```
npm install -g minimum
```

## Usage

### Options
```javascript
var opts = {}

opts.path = 'path/to/file.html' // required
opts.output = 'path/to/min.html'  // optional
opts.debug = false // optional
opts.watch = false // optional
```

### Command line
```
minimum [opts] path
```
```
-h, --help           output usage information
-d, --debug          show debug logs
-o, --output [path]  path to output minified html
-w, --watch          watch for changes
```

### Module
```javascript
var min
  , minimum = require('minimum')
  , opts = { path: 'file.html' }

min = minimum(opts)
min.on('save', function(original, saved) {
  console.log('File saved to: '+saved)
})
```

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