Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qrcode-svg-ts

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qrcode-svg-ts - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

36

index.d.ts
type QRCodeSVGSaveCallBack = (error:any, result:any) => void
declare type QRCodeSVGSaveCallBack = (error:any, result:any) => void
interface QRCodeSVGOptions {
declare interface QRCodeSVGOptions {
/**

@@ -57,21 +57,21 @@ * 二维码内容

declare const QRCodeSVG: {
new(options: QRCodeSVGOptions|string): QRCodeSVG;
};
new(options: QRCodeSVGOptions|string): QRCodeSVGObject;
}
interface QRCodeSVG {
/**
declare interface QRCodeSVGObject {
/**
* 获取svg文件
*/
svg(): string
/**
* 转换为 data:image/svg+xml 格式
* 可以直接使用 img 标签展示
*/
dataURL(): string
/**
* 保存svg文件
* @param file 文件保存的路径
* @param callback 保存的结果
*/
save(file: string, callback: QRCodeSVGSaveCallBack): void
svg(): string
/**
* 转换为 data:image/svg+xml 格式
* 可以直接使用 img 标签展示
*/
dataURL(): string
/**
* 保存svg文件
* @param file 文件保存的路径
* @param callback 保存的结果
*/
save(file: string, callback: QRCodeSVGSaveCallBack): void
}

@@ -78,0 +78,0 @@

{
"name": "qrcode-svg-ts",
"version": "1.1.1",
"version": "1.1.2",
"description": "A simple QR Code generator in pure JavaScript",

@@ -5,0 +5,0 @@ "author": "SHLYREN",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc