diff --git a/README.md b/README.md index fc622f6..780d604 100644 --- a/README.md +++ b/README.md @@ -126,8 +126,8 @@ const cfg = { minifyJs: false }; const minified = minifyHtml.minify("

Hello, world!

", cfg); // Alternatively, minify in place to avoid copying. -const source = Buffer.from("

Hello, world!

", cfg); -minifyHtml.minifyInPlace(source); +const source = Buffer.from("

Hello, world!

"); +minifyHtml.minifyInPlace(source, cfg); ``` minify-html is also available for TypeScript: