Skip to content

Commit 2358ea5

Browse files
authored
Update readme
Add a note explaining that CSS-to-HTML is a browser-only library.
1 parent 4374c91 commit 2358ea5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ const css = document.querySelector('style').sheet.cssRules;
2525
const html = await cssToHtml(css);
2626
```
2727

28+
> [!NOTE]
29+
> CSS-to-HTML relies on some browser-only JS features, so it doesn't work in Node (yet).
30+
> If you want to use this in a Node project, please use a webdriver like [Puppeteer](https://pptr.dev/).
2831
2932
## Example
3033

0 commit comments

Comments
 (0)