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

qr-manager

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qr-manager

a powerful package to create qr-codes with images and without images with realy any url, or just use it to validate and scan qr-codes.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
Maintainers
1
Weekly downloads
 
Created
Source

NPM

Codacy Badge Downloads Version install size node


Basic Information.

a powerful package to create qr-codes with images and without images with realy any url, or just use it to validate and scan qr-codes.

Choose Readme type.

📗 - JavaScript

Get Started.

Installation.

NPM
npm i qr-manager
Yarn
yarn add qr-manager
PNPM
pnpm i qr-manager

Usage.

Importing.
const { readQRCode, generateQRCode } = require('qr-manager');

Reading QR-Codes.

const { readQRCode } = require("qr-manager")

const inputPathOrUrl = 'https://example.com/your-qr-code.png'; // Replace with the URL or file path of your QR code image

readQRCode(inputPathOrUrl)
  .then((result) => {
    if (result) {
      console.log('QR code value:', result);
    } else {
      console.log('QR code could not be read.');
    }
  })
  .catch((error) => {
    console.error('Error:', error);
});

Generating QR-Codes.

const { generateQRCode } = require('qr-manager');

// Usage examples:
const url = 'https://example.com';
const imageUrl = 'https://example.com/path/to/your/image.png'; // Optional and you can also use a local file path instead.

// Both usages are valid:
generateQRCode(url, imageUrl);

// or
generateQRCode({ url, imageUrl });
Examples.

[!NOTE] You can view all the examples here.

License.

This package is licensed under the MIT License. See the LICENSE file for more information.

Support.

If you need support, please join our Discord Server and ask your question in the #support channel.

Issues.

If you have any issues, please open an issue on our GitHub Repository.

Developers.


BinaryBlazer


Developed with ❤️ by SDEVS

Keywords

FAQs

Package last updated on 13 Sep 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