![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@altack/quar
Advanced tools
A simple Angular QR Code scanner that just works.
Install the package
npm i @altack/quar
Make sure to also install jsQR as a dependency. jsQR is used to decode the video stream captured by the user's camera until a match is found.
Import the QuarModule
in your AppModule
(or any other module).
Attach the <quar-scanner (scanSuccess)="onSuccess($event)" (scanError)="onError($event)"></quar-scanner>
component to your desired component template.
Most common use case is to attach the <quar-scanner></quar-scanner>
into a fullscreen MatDialog component so that the scanner nicely appears on top of everything.
There's also a helper service QuarService
it contains some functions to check for browser compatibility and user permissions
(onSuccess)
event will emit only if jsQR found a valid QR Code, then Quar will stop looking for matches. You can restart the process by calling resumeScanner()
directly from the QuarComponent e.g
@ViewChild(QuarComponent) private quar: QuarComponent;
restartScanning() { this.quar.resumeScanner(); }
(scanError)
will emit in case the browser doesn't support WebRTC APIs, or it lacks of user permissions.
Values are part of the QuarErrors
Enum, and the possible values are noPermissions
, notSupported
or unknownError
.
If you're using Angular 15 make sure to update Quar package to v1.5.x
FAQs
A simple Angular QR Code scanner that just works.
The npm package @altack/quar receives a total of 229 weekly downloads. As such, @altack/quar popularity was classified as not popular.
We found that @altack/quar 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.