Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
ngx-qrcode-svg
Advanced tools
Readme
Angular component library to generate QR codes with SVG rendering.
<qrcode-svg value="The content you want show as QR code"></qrcode-svg>
To install ngx-qrcode-svg
run the following command:
npm i ngx-qrcode-svg
# Or if you use yarn
yarn add ngx-qrcode-svg
First, import the QRCodeSVGModule
into your consuming module, e.g. into the AppModule
import { QRCodeSVGModule } from 'ngx-qrcode-svg';
...
@NgModule({
...
imports: [ QRCodeSVGModule ],
...
})
Then you can use the qrcode-svg
tag in your component templates like this:
<qrcode-svg
[value]="qrCodeValue"
[errorCorrectionLevel]="errorCorrectionLevel"
[margin]="margin"
[color]="color"
[backgroundColor]="backgroundColor"
></qrcode-svg>
The qrcode-svg
component supports the following bindings:
value: string
(required)
errorCorrectionLevel: string
(optional, default: 'Q'
)
'L'
, 'M'
, 'Q'
, 'H'
import { ErrorCorrectionLevel } from 'ngx-qrcode-svg';
margin: number | string
(optional, default: 4
)
color: string
(optional, default: 'currentcolor'
)
backgroundColor: string
(optional, default: 'transparent'
)
If you don't pass explicit values to the color
or backgroundColor
inputs of this component, you can style your QR code with regular css like this:
<qrcode-svg class="qrcode" value="The content you want show as QR code"></qrcode-svg>
.qrcode {
color: black;
background: white;
}
This library is based on the node-qrcode package and inspired by the excellent angularx-qrcode library, which I highly recommend if you need other QR code output formats than SVG in your Angular applications.
The word "QR Code" is registered trademark of:
DENSO WAVE INCORPORATED
FAQs
Angular component library to generate QR codes with SVG rendering
The npm package ngx-qrcode-svg receives a total of 136 weekly downloads. As such, ngx-qrcode-svg popularity was classified as not popular.
We found that ngx-qrcode-svg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.