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

minimal-qr-code

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minimal-qr-code - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

8

dist/index.d.ts

@@ -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",

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