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

jsqr

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsqr - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

.travis.yml

2

package.json
{
"name": "jsqr",
"version": "0.1.1",
"version": "0.1.2",
"description": "QR code detection, extraction, decoding and parsing written as pure JS port of the ZXing library.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/cozmo/jsQR",

# jsQR
[![Build Status](https://travis-ci.org/cozmo/jsQR.svg?branch=master)](https://travis-ci.org/cozmo/jsQR)
A pure javascript port of the [ZXing](https://github.com/zxing/zxing) QR parsing library.

@@ -4,0 +6,0 @@ This library takes in raw images and will locate, extract and parse any QR codes found within.

@@ -29,3 +29,2 @@ export class BitMatrix {

copyBit(x: number, y: number, versionBits: number): number {
/// bool bit = mirrored ? bitMatrix[j, i] : bitMatrix[i, j];
return this.get(x, y) ? (versionBits << 1) | 0x1 : versionBits << 1;

@@ -43,2 +42,13 @@ }

}
mirror(){
for (var x = 0; x < this.width; x++) {
for (var y = x + 1; y < this.height; y++) {
if (this.get(x, y) != this.get(y, x)) {
this.set(x, y, !this.get(x, y));
this.set(y, x, !this.get(y, x));
}
}
}
}
}
/// <reference path="./mocha.d.ts" />
/// <reference path="./node.d.ts" />
import assert = require("assert")
import qrJS = require("../src/Main");
import qrJS = require("../src/main");

@@ -6,0 +6,0 @@ describe('main', () => {

Sorry, the diff of this file is too big to display

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