File SystemHTML Processing
Extract links from a webpage using HTMLRewriter
Bun's HTMLRewriter API extracts links from HTML. Chain CSS selectors to match the elements, text, and attributes you want to process, then pass .transform a
import, require, and test Svelte components with bun test
Use Bun's Plugin API to add a custom loader for .svelte files, and the test.preload option in bunfig.toml to load it before your tests run.
Extract social share images and Open Graph tags
Bun's HTMLRewriter API extracts social share images and Open Graph metadata from HTML by matching CSS selectors against the elements, text, and attributes you