Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@larscom/ng-qrcode-svg

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@larscom/ng-qrcode-svg

Simple QR code generator (SVG only) for Angular

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
129
increased by38.71%
Maintainers
1
Weekly downloads
 
Created
Source

@larscom/ng-qrcode-svg

npm-version npm license codecov

CodeQL firebase-hosting

Simple QR code generator (SVG only) for Angular

Demo GIF

Live Demo

Installation

npm install @larscom/ng-qrcode-svg

Usage

  1. Import module QrcodeSvgModule
import { NgModule } from '@angular/core';
import { QrcodeSvgModule } from '@larscom/ng-qrcode-svg';

@NgModule({
  imports: [
    QrcodeSvgModule // import QrcodeSvgModule
  ]
})
export class MyModule {}
  1. Use the qrcode-svg component which will render a QR code in SVG format
<qrcode-svg value="hello world!"></qrcode-svg>

Component Properties

NameDescriptionDefault
@Input() value: stringThe value which need to be encodedundefined
@Input() ecl: 'low' | 'medium' | 'quartile' | 'high'Error correction levelmedium
@Input() borderSize: numberThe padding between the edge and the QR code (quiet zone)2
@Input() size: string | numberThe size of the QR code SVG (css format)250px
@Input() backgroundColor: stringThe 'path' color (background)#FFFFFF
@Input() foregroundColor: stringThe 'rect' color (foreground)#000000
@Input() alt: string | undefinedHTML alt attributeundefined
@Input() ariaLabel: string | undefinedHTML aria-label attributeundefined

Keywords

FAQs

Package last updated on 19 Jul 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc