1.4.2 • Published 2 years ago

@spartez/kr-code v1.4.2

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

How to generate kr-code from the console

As in all npm projects you have to type npm install - just reminder!

Install some stuff. I don't know what does it do, but you can't perform the next step without it:

brew install pkg-config cairo libpng jpeg giflib

Install canvas dependency:

npm install canvas

Now you can generate a krCode from the command line. It can be invoked with up to 4 parameters

  • type
  • value
  • width in pixels
  • rotation (0-3) 0=horizontal, 1=90 degree clockwise rotated ...

for example:

./generate-kr-code 3 10001 500 > kr-code.png

In case of trouble - ask the guy with the longest beard in the lambda team.