Hello, world!
", cfg); ``` minify-html is also available for TypeScript: ```ts import * as minifyHtml from "@minify-html/js"; import * as fs from "fs"; const cfg = minifyHtml.createConfiguration({ minify_js: false, minify_css: false }); const minified = minifyHtml.minify("Hello, world!
", cfg); ```Hello, world!
", cfg); ```Hello, world!
", minify_js=False, minify_css=False) ```Hello, world!
", { :minify_js => false, :minify_css => false }) ```Before | After |
---|---|
```html
↵ ··The·quick·brown·fox↵ ··jumps·over·the·lazy↵ ··dog.↵ ``` |
```html
·The·quick·brown·fox·jumps·over·the·lazy·dog.· ``` |
Before | After |
---|---|
```html
|
```html
|
Before | After |
---|---|
```html
↵ ··Hey,·I·just·found↵ ··out·about·this·cool·website!↵ ··[1]↵ ``` |
```html
Hey,·I·just·found↵ ··out·about·this·cool·website!↵ ··[1] ``` |
↵ ··Hey,·I·just·found↵ ··out·about·this·cool·website!↵ ··[1]↵
``` ###### After ```htmlHey,·I·just·found·out·about·this·cool·website!·[1]
```