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

jsqrcode-lite

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsqrcode-lite

Simplified version of Lazar Laszlo's `jsqrcode` for node.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

jsqrcode-lite

Port of Lazarsoft/jsqrcode that works in node. Simplified.

There is a different jsqrcode in NPM that is more hands-on - with each file being turned into a module.

  • requires node-canvas which is very unfriendly on Windows.
  • keeps the Array.prototype.remove that Lazar's version adds.

This version instead attempts to touch the original code as little as possible, and exports a wrapping decoder function rather than the Canvas-y stuff.

  • Has no dependencies
  • Does not modify built-ins

All you can do with this version (currently) is call:

var decodeImageData = require('jsqrcode-lite');
decodeImageData({
	width: 2,
	height: 2,
	[ //rgba values
	  255, 255, 255, 255, 0, 0, 0, 0,
	  255, 255, 255, 255, 0, 0, 0, 0
	]
}, function myCallback(strFromImageData) {
	console.log(strFromImageData);
});

That's all I needed. If you'd like to expose other parts of the code, let me know.

Getting Started

Install the module with: npm install jsqrcode-lite

Documentation

(Coming soon)

Examples

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

(Nothing yet)

License

Copyright (c) 2012 Adam Ahmed
Licensed under the MIT license.

FAQs

Package last updated on 25 Nov 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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