@spartez/kr-code

1.4.2 • Public • Published

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.

/@spartez/kr-code/

    Package Sidebar

    Install

    npm i @spartez/kr-code

    Weekly Downloads

    2

    Version

    1.4.2

    License

    none

    Unpacked Size

    16.1 kB

    Total Files

    6

    Last publish

    Collaborators

    • aleksanderciesielski
    • akila_amarasekara
    • murthy_appfire
    • pdobrzanski
    • vkizhaev
    • isspartez
    • lumat
    • marszall87
    • bzieba
    • spartez-private
    • abilicz
    • mnykiel
    • sebastianmialkowski