release: WRNexusJS 0.7.0
This commit is contained in:
1 parent
c54144f2e4
commit
87507edf59
207 files changed
+12607
-679
No files matched your search
@@ -0,0 +1,16 @@
|
||||
# @wrnexus/image
|
||||
|
||||
Responsive image attribute generation with secure remote-host policies and audits for dimensions, LCP loading, source oversizing, transfer size, and modern formats.
|
||||
|
||||
```ts
|
||||
import { createResponsiveImage } from "@wrnexus/image";
|
||||
const attrs = createResponsiveImage({
|
||||
src: "/hero.jpg",
|
||||
alt: "Hero",
|
||||
width: 1600,
|
||||
height: 900,
|
||||
widths: [480, 960, 1600],
|
||||
sizes: "100vw",
|
||||
format: "avif",
|
||||
});
|
||||
```
|
||||
Reference in new issue
Block a user