
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@granite-elements/granite-qrcode-decoder
Advanced tools
An element to scan a QR Code using the device camera
An element to decode a QR Code from an image. using a modified version of Lazersoft's jsqrcode library, to allow
jsqrcode
to deal with ShadowDOMBuilt on lit-element
The old Polymer 2.x-1.x version is available on the
polymer-hybrid
branch.
The element can decode several sources of images:
dataUrl
propertyapp-media-image-capture
, by injecting it to the blob
propertydecodeCanvas
method passing the canvas as parameterhttps://lostinbrittany.github.io/granite-qrcode-decoder
<granite-qrcode-decoder
@qrcode-decoded="${method_listening_for_data}"
data-url="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAXIAAAFyAQMAAADS6sNKAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABn0lEQVR4nO2aS46EMAxELXEAjsTVcyQO0FJ6sF0xBBazmlGhqoW7SV6ywYk/3WaSJEmSJP2Peupjtu3H42GaLd1sxVwTz8vHw/qxAFpRPlaIeE5+zTl3ijDTmPg38Lb9fCkj/m28DeOLTPwreP9YM17DLL+4/8Uz8Cm/xSeDOfG8/GXlNWg/UuK5eAA9Uu2soo7z7jWW4dCLJ+Uj7dozcjtfE1FDN/G8/EmneA1HiWxNPDOPVMy8y+Vjno9ZGjPxzDxqp2Z+toHmRsuD/4jn4ROAF/RRTw1HEU/M+1w0uFwRpZGK4eSLZ+UvpxzHf8Tr2M3EE/Nr3ufoYjq/ZHn1cJ+LZ+LrjdfKdAUY8cR8NTCnUgqucPcf8UR8lVJxlfse2e86NN/n4rn4fOPV5fKVg282STwXf14ZrepLenbrd4nn4nGuP8MzvJTqHY3s+f4Xz8XHw+h3HaosTDw/f3n36ILAUVptKZ6bv/9LKwO5+FfwMbwhXlvk4A+/L4un4v0jvKAPqtCn/qd4Hj6FAO3Ltx2L7v0T8VS8JEmSJEl/qS/3CycsizQPTAAAAABJRU5ErkJggg=="
debug></granite-qrcode-decoder>
Install the component using npm:
$ npm i @granite-elements//granite-qrcode-decoder
Once installed, import it in your application:
import '@granite-elements/granite-qrcode-decoder/granite-qrcode-decoder.js';
Fork the granite-qrcode-decoder
repository and clone it locally.
Make sure you have npm and the Polymer CLI installed.
When in the granite-qrcode-decoder
directory, run npm install
to install dependencies.
Serve the project using Polyumer CLI:
polymer serve --npm
Open the demo in the browser
git checkout -b my-new-feature
git commit -m 'Add some feature'
git push origin my-new-feature
FAQs
An element to scan a QR Code using the device camera
The npm package @granite-elements/granite-qrcode-decoder receives a total of 2 weekly downloads. As such, @granite-elements/granite-qrcode-decoder popularity was classified as not popular.
We found that @granite-elements/granite-qrcode-decoder 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.