From c0f7ac99e1684ed4d6ffdb0657854c8e9a65329a Mon Sep 17 00:00:00 2001 From: Wilson Lin Date: Thu, 26 Jan 2023 15:38:35 +1100 Subject: [PATCH] [README] Fix JS example code import --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 44393cf..55ef1b3 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ TypeScript definitions are available. ```ts import { Buffer } from "node:buffer"; -import * as minifyHtml from "@minify-html/node"; +import minifyHtml from "@minify-html/node"; // Or `const minifyHtml = require("@minify-html/node")` if not using TS/ESM. const minified = minifyHtml.minify(Buffer.from("

Hello, world!

"), { keep_spaces_between_attributes: true, keep_comments: true });