From 448517d05c368e8fd4a6390870ef4fd85a1cd197 Mon Sep 17 00:00:00 2001 From: kangax Date: Sat, 26 Jul 2014 15:01:49 +0200 Subject: [PATCH] Update node usage --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ab533f9..eced72c 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,11 @@ For command line usage please see `html-minifier --help` Node.js ======== ``` -require('html-minifier') +var minify = require('html-minifier').minify; +var result = minify('

foo

', { + removeAttributeQuotes: true +}); +result; // '

foo

' ``` -- 2.34.1