Skip to content

Added node.js compatibility, mocha test and patches from other forks#6

Open
Hypermediaisobar-admin wants to merge 16 commits intokazuhikoarase:masterfrom
Hypermediaisobar-admin:master
Open

Added node.js compatibility, mocha test and patches from other forks#6
Hypermediaisobar-admin wants to merge 16 commits intokazuhikoarase:masterfrom
Hypermediaisobar-admin:master

Conversation

@Hypermediaisobar-admin
Copy link

Hi,

First of all, thanks for your work :).

We've added some glue code that allows using qrcode.js in nodejs.

Additionally, we've:

  • integrated changes from other forks,
  • extracted GIF generating code to separate function, so it can be called directly (for example: to write GIF to file),
  • added test to be run with mocha (http://mochajs.org/)

It would be great if you could merge it all into official repo.
Please let us know if anything has to be changed before merge, or if those changes cannot be merged at all for some reason.

Thanks,
Regards

takkyun and others added 9 commits September 26, 2012 08:17
Updating RS_BLOCK_TABLE to support version 11 - 40.
Updating make to handle auto version mode (if typeNumber == 0, the
qrcode generator will set version according to the length of data).
Support version 11 - 40 (typeNumber) and auto mode
So it uses auto mode and escapes unicode.
Added new `createImage(cellSize, margin)` function, that uses code
extracted from `createImgTag()` function. This allows user to call
`createImage()` to get raw GIF data (in a form of object, with `bytes`,
`width` and `height` properties) or `createImgTag` as before.
@marksteward
Copy link

Not the maintainer, but I'd suggest removing the reindent (45d0c74), as it makes it impossible to see what the changes are.

@ahwayakchih
Copy link
Contributor

@marksteward you're absolutely right. I reapplied changes in a new pull request :).

@ahwayakchih
Copy link
Contributor

@kazuhikoarase please close this, as it was implemented in #54 :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants