Skip to content

grafisaholic/node-qris-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instalation

npm install node-qris-generator

Usage

var qrisReader = require('node-qris-generator');

Passing image from url

You have to use an external express

  1. You can use npm install --save express
    var express = require("express");
    var app = express()
    
    app.get('/read-qrcode', async (req,res,next) => {
        let urlEncode = req.query.url;
    
          try {
            qrisReader.decodeUri(urlEncode, (err, result) => {
              if (err)
                return res.json({
                  status: 500,
                  message: `${err}`
                })
        
              return res.json({
                status: 200,
                data: result
              });
            });
          } catch (e) {
            console.log(e);
            return res.json({
              status: 500,
              message: `${e}`
            });
          };
    });

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published