Socket
Socket
Sign inDemoInstall

@spartez/kr-code

Package Overview
Dependencies
0
Maintainers
11
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @spartez/kr-code

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


Version published
Maintainers
11
Install size
15.8 kB
Created

Readme

Source

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.

FAQs

Last updated on 21 Mar 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc