An open API service indexing awesome lists of open source software.

https://github.com/csgillespie/minifyhtml

A binding the Javascript-based HTML compressor/minifier
https://github.com/csgillespie/minifyhtml

html minifier r rstats

Last synced: 2 months ago
JSON representation

A binding the Javascript-based HTML compressor/minifier

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```

## HTML minifier
[![Build Status](https://travis-ci.org/csgillespie/minifyHTML.svg?branch=master)](https://travis-ci.org/csgillespie/minifyHTML)
[![Lifecycle: maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
[![Coverage status](https://codecov.io/gh/csgillespie/minifyHTML/branch/master/graph/badge.svg)](https://codecov.io/github/csgillespie/minifyHTML?branch=master)

A binding to the HTML Javascript minifier library: [html-minifier](https://github.com/kangax/html-minifier)

### Usage

To install

```{r eval=FALSE}
devtools::install_github("csgillespie/minifyHTML")
```

To use
```{r}
library("minifyHTML")
input = "

baz
"
minifyHTML(input)
```