Socket
Socket
Sign inDemoInstall

node-red-contrib-qrcode-generator

Package Overview
Dependencies
30
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-red-contrib-qrcode-generator

QRCODE Generator


Version published
Weekly downloads
74
increased by10.45%
Maintainers
1
Install size
1.65 MB
Created
Weekly downloads
 

Readme

Source

node-red-contrib-qrcode-generator

Create QRCode from action text. Based on node-qrcode module.

Install

Install from PALETTE Manager or run the following command in your NODE-RED user directory typically: ~/.node-red

npm install node-red-contrib-qrcode-generator

Usage

Processes string to generate QRCode. Use the editor as an helper to forge action text string (link, sms, wifi etc.) or post your custom string using msg.qrcodeinput input property. Here is documentation to create your custom action text. Remember QRCode are specific for some devices for example Wi-Fi Network config works only on Android or iOS 11+. There are a lot of different standards on actionable text, the helper (editor configuration) aims to cover some of the most used. Finally node returns DataUri format image in msg.payload.

You can render DataUri result, in html page with img element, using template node with mustache:

<body>
  <img src="{{payload}}">
</body>

or you can link output to image viewer node and get a preview in your Node-Red workspace panel.

You can use different colors but keep in mind that Background Color must be brighter than QRcode Color.

Input

msg.qrcodeinput Custom string, it will be used instead of editor configuration. e.g.:

msg.qrcodeinput = 'mailto:someone@yoursite.com';

creates QRcode with action text for sending email to a specific address.

Output

msg.payload Image in DataURI format.

Keywords

FAQs

Last updated on 01 Apr 2021

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