Skip to content

Commit

Permalink
apply lint
Browse files Browse the repository at this point in the history
kuboon committed Nov 28, 2024
1 parent ac8d936 commit 1f8a22f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -105,11 +105,13 @@ svg2png.dispose(); // You should dispose svg2png, if you will not use it in the
Or, using a script tag in the browser and load from esm.sh.

```html
<img id="output">
<img id="output" />
<script type="module">
import * as svg2pngWasm from 'https://esm.sh/svg2png-wasm@0.6.1';
await svg2pngWasm.initialize(fetch('https://esm.sh/svg2png-wasm@0.6.1/svg2png_wasm_bg.wasm'));
await svg2pngWasm.initialize(
fetch('https://esm.sh/svg2png-wasm@0.6.1/svg2png_wasm_bg.wasm'),
);
/** @type {Uint8Array} */
const png = await svg2pngWasm.svg2png(

0 comments on commit 1f8a22f

Please sign in to comment.