minimal-qr-code
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -1,2 +0,6 @@ | ||
export { QRCode } from './QRCode'; | ||
export { QRErrorCorrectLevel } from './QRErrorCorrectLevel'; | ||
import { QRErrorCorrectLevel } from './QRErrorCorrectLevel'; | ||
export declare function makeQR(data: string, typeNumber: number, errorCorrectLevel: QRErrorCorrectLevel): { | ||
size: number; | ||
isDark: (row: number, col: number) => any; | ||
}; | ||
export { QRErrorCorrectLevel }; |
@@ -1,17 +0,9 @@ | ||
//--------------------------------------------------------------------- | ||
// QRCode for JavaScript | ||
// | ||
// Copyright (c) 2009 Kazuhiko Arase | ||
// | ||
// URL: http://www.d-project.com/ | ||
// | ||
// Licensed under the MIT license: | ||
// http://www.opensource.org/licenses/mit-license.php | ||
// | ||
// The word "QR Code" is registered trademark of | ||
// DENSO WAVE INCORPORATED | ||
// http://www.denso-wave.com/qrcode/faqpatent-e.html | ||
// | ||
//--------------------------------------------------------------------- | ||
export { QRCode } from './QRCode'; | ||
export { QRErrorCorrectLevel } from './QRErrorCorrectLevel'; | ||
import { QRCode } from './QRCode'; | ||
import { QRErrorCorrectLevel } from './QRErrorCorrectLevel'; | ||
export function makeQR(data, typeNumber, errorCorrectLevel) { | ||
const qr = new QRCode(typeNumber, errorCorrectLevel); | ||
qr.addData(data); | ||
qr.make(); | ||
return { size: qr.getModuleCount(), isDark: qr.isDark }; | ||
} | ||
export { QRErrorCorrectLevel }; |
{ | ||
"name": "minimal-qr-code", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Simple QR code generator library.", | ||
@@ -5,0 +5,0 @@ "author": "Jaedson Barbosa Serafim", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36298
1079