Skip to content

Commit d2ec1fe

Browse files
committed
Add saveSVG(opts) function description
+ Add saveSVG(opts) function description
1 parent f42dc61 commit d2ec1fe

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

readme.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,18 @@ var qrcode = new QRCode(options);
318318
console.log("`q-premium1.png` has been Created!");
319319
});
320320
```
321-
321+
322+
- **saveSVG(ImagesFormatOptions)**
323+
324+
```JS
325+
// Save SVG to file
326+
qrcode.saveSVG({
327+
path: 'qrcode.svg' // file path
328+
}).then(data=>{
329+
console.log("`qrcode.svg` has been Created!");
330+
});
331+
```
332+
322333
- **toDataURL()**
323334

324335
```JS

0 commit comments

Comments
 (0)