-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
35 lines (28 loc) · 1.18 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{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)<!-- [![CRAN](http://www.r-pkg.org/badges/version/prettyB)](https://cran.r-project.org/package=prettyB) -->
[![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)
<!-- [![Downloads](http://cranlogs.r-pkg.org/badges/prettyB?color=brightgreen)](https://cran.r-project.org/package=prettyB) -->
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 = "<!-- foo --><div>baz</div><!-- bar\n\n moo -->"
minifyHTML(input)
```