From: kangax Date: Sat, 26 Jul 2014 13:01:49 +0000 (+0200) Subject: Update node usage X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=448517d05c368e8fd4a6390870ef4fd85a1cd197;p=html-minifier.git Update node usage --- 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

' ```