Skip to content

Commit e457bf6

Browse files
authored
Merge pull request #123 from miusuncle/feat/node-version
2 parents 9412679 + 443a17a commit e457bf6

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ Forces exact dimensions, potentially distorting the image if the aspect ratio di
185185
```js
186186
const result = await snapdom(element, {
187187
width: 800, // Outputs an 800px × 200px image (may stretch/squish content)
188-
height: 200
188+
height: 200
189189
});
190190
```
191191
@@ -330,6 +330,9 @@ npm install
330330
# Compile the library (ESM, CJS, and minified versions)
331331
npm run compile
332332

333+
# Install playwright browsers (necessary for running tests)
334+
npx playwright install
335+
333336
# Run tests
334337
npm test
335338

@@ -361,7 +364,7 @@ For detailed contribution guidelines, please see [CONTRIBUTING](https://github.c
361364
362365
## 💖 Sponsors
363366
364-
Special thanks to [@megaphonecolin](https://github.com/megaphonecolin) for supporting this project!
367+
Special thanks to [@megaphonecolin](https://github.com/megaphonecolin) for supporting this project!
365368
366369
If you'd like to support this project too, you can [become a sponsor](https://github.com/sponsors/tinchox5).
367370

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
"bump": "npx @zumerbox/bump && npx @zumerbox/changelog",
1616
"prebuild": "git add CHANGELOG.md && git commit -m \"Bumped version\" && git push --follow-tags"
1717
},
18+
"engines": {
19+
"node": ">= 20"
20+
},
1821
"repository": {
1922
"type": "git",
2023
"url": "git+https://github.com/zumerlab/snapdom.git"

0 commit comments

Comments
 (0)