BHIMUPIJS is a npm module which can validate, verify and generate QR Codes for UPI IDs.

Overview

bhimupijs

npm version Stars weekly Download License Issues FOSSA Status

BHIMUPIJS is a npm module which can validate, verify and generate QR Codes for UPI IDs.

Installation

Install this npm package globally.

npm install -g bhimupijs

Or Install it locally if you want to use it in your project.

npm install bhimupijs

and use it like

const { verifyUPI } = require("bhimupijs")

Usage

CLI

~$ bhimupijs --help

Usage:
bhimupijs [VPA] (command to validate VPA).

Options:
    --version                Show version number                [boolean]
-n, --name                   Print's payee name                 [boolean]
    --validate-pattern, --vp Validate VPA pattern               [boolean]
    --qrcode, --qr           Print's QR Code of vpa             [boolean]
-h, --help                   Show help                          [boolean]

Examples:
  bhimupijs sumithemmadi@upi
  bhimupijs sumithemmadi@upi --qr     Print's QR code of the vpa

  Only install this package from npm 'npm install -g bhimupijs' or
  https://github.com/sumithemmadi/bhimupijs

Verifying UPI ID

~$ bhimupijs sumithemmadi@ybl
{
  result: true,
  query: 'sumithemmadi@ybl',
  isQueryPatternValid: true,
  isVpaVerified: true,
  vpa: 'sumithemmadi@ybl',
  payeeAccountName: 'Emmadi Sumith Kumar',
  tpap: 'PhonePe',
  pspBank: 'Yes Bank',
  link: 'https://www.phonepe.com/contact-us/',
  userId: 'sumithemmadi',
  handleName: 'ybl',
  message: 'Valid UPI ID'
}
  • This will verify UPI ID

Validating UPI ID

~$ bhimupijs sumithemmadi@ybl --vp
{
  query: 'sumithemmadi@ybl',
  isQueryPatternValid: true,
  message: 'Valid VPA Pattern!',
  tpap: 'PhonePe',
  pspBank: 'Yes Bank',
  link: 'https://www.phonepe.com/contact-us/',
  userId: 'sumithemmadi',
  handleName: 'ybl'
}
  • --vp is used to validate UPI ID without verifying it. This will check if the given UPI Id has a valid pattern.
  • It will not verify the UPI Id

Print QR Code

~$ bhimupijs sumithemmadi@ybl --qrcode # this will print a qrcode on terminal

QR Code Image

Name

~$ bhimupijs sumithemmadi@ybl --name 
Name : Emmadi Sumith Kumar
  • Here --name is used to print the name of a verified UPI ID.

NodeJS

Verifing UPI ID

const { verifyUPI } = require("bhimupijs")

const vpa = "sumithemmadi@ybl";

async function verify(vpa){
    var upiData = await verifyUPI(vpa)  // verifyUPI function is used to verify UPI ID
    console.log(upiData)
}

verify(vpa)

// {
//   result: true,
//   query: 'sumithemmadi@ybl',
//   isQueryPatternValid: true,
//   isVpaVerified: true,
//   vpa: 'sumithemmadi@ybl',
//   payeeAccountName: 'Emmadi Sumith Kumar',
//   tpap: 'PhonePe',
//   pspBank: 'Yes Bank',
//   link: 'https://www.phonepe.com/contact-us/',
//   userId: 'sumithemmadi',
//   handleName: 'ybl',
//   message: 'Valid UPI ID'
// }

Validating UPI ID

const { validatePattern } = require("bhimupijs")

var data =  validatePattern("sumithemmadi@ybl")  // validatePattern function only validate the  UPI ID pattern.
console.log("data")

// {
//   query: 'sumithemmadi@ybl',
//   isQueryPatternValid: true,
//   message: 'Valid VPA Pattern!',
//   tpap: 'PhonePe',
//   pspBank: 'Yes Bank',
//   link: 'https://www.phonepe.com/contact-us/',
//   userId: 'sumithemmadi',
//   handleName: 'ybl'
// }

LICENSE

MIT License

Copyright (c) 2022 Emmadi Sumith Kumar

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

FOSSA Status

You might also like...

Automatic Role Adder Is Usually Used In Coding Servers Which Give Access To Codes By Subbing To Their Channel So This Helps Them To Auto Role People :)

Automatic Role Adder Setup Guide Automatic Role Adder Is Usually Used In Coding Servers Which Give Access To Codes By Subbing To Their Channel So This

Dec 23, 2022

A module federation SDK which is unrelated to tool chain for module consumer.

A module federation SDK which is unrelated to tool chain for module consumer.

hel-micro, 模块联邦sdk化,免构建、热更新、工具链无关的微模块方案 Demo hel-loadash codesandbox hel-loadash git Why hel-micro 如何使用远程模块 仅需要一句npm命令即可载入远程模块,查看下面例子线上示例 1 安装hel-micr

Jan 3, 2023

Trusted timestamps that you can physically include in photos, videos and live streams using QR codes and audible data signals.

Trusted timestamps that you can physically include in photos, videos and live streams using QR codes and audible data signals.

QR Date This is the reference implementation for the first version of QR Date, a signed timestamp inside a QR code that you can use to verify the date

Oct 5, 2022

We are creating a Library that would ensure developers do not reinvent the wheel anymore as far as Authentication is concerned. Developers can easily register and download authentication codes that suits their need at any point.

We are creating a Library that would ensure developers do not reinvent the wheel anymore as far as Authentication is concerned. Developers can easily register and download authentication codes that suits their need at any point.

#AuthWiki Resource Product Documentation Figma Database Schema First Presentation Live Link API Documentation Individual Contributions User Activity U

Dec 2, 2022

Verify your E-Mail and Phone Number using link sent over mail and sms.

Verify your E-Mail and Phone Number using link sent over mail and sms.

Phone-and-Mail-Verification-With-Link Verify your E-Mail and Phone Number using link sent over mail and sms. Endpoints POST /user/create Body { "n

Sep 14, 2022

Verify your E-Mail and Phone Number using link sent over mail and sms.

Verify your E-Mail and Phone Number using link sent over mail and sms.

Send Verification Link ✅ Explore the docs » • Report Bug • Request Feature • About The Project Verify your E-Mail and Phone Number using link sent ove

Jun 28, 2022

Massive Open-Source Anti-agression Intelligence Collection is intended for civilians to be able to submit and verify intelligence items about an attacking force.

Massive Open-Source Anti-agression Intelligence Collection is intended for civilians to be able to submit and verify intelligence items about an attacking force.

Mar 1, 2022

The code base for the tutorial on how to use the TypingDNA Verify API

TypingDNA-Verify-API-Tutorial The code base for the tutorial on how to use the TypingDNA Verify API Resources TypingDNA Website TypingDNA Verify Docs

Oct 6, 2022
Comments
Releases(v1.0.2)
  • v1.0.2(Jul 28, 2022)

    What's Changed

    • Add license scan report and status by @fossabot in https://github.com/sumithemmadi/bhimupijs/pull/1
    • [ImgBot] Optimize images by @imgbot in https://github.com/sumithemmadi/bhimupijs/pull/2

    New Contributors

    • @fossabot made their first contribution in https://github.com/sumithemmadi/bhimupijs/pull/1
    • @imgbot made their first contribution in https://github.com/sumithemmadi/bhimupijs/pull/2

    Full Changelog: https://github.com/sumithemmadi/bhimupijs/commits/v1.0.2

    Source code(tar.gz)
    Source code(zip)
Owner
Emmadi Sumith Kumar
Emmadi Sumith Kumar
An npm package for demonstration purposes using TypeScript to build for both the ECMAScript Module format (i.e. ESM or ES Module) and CommonJS Module format. It can be used in Node.js and browser applications.

An npm package for demonstration purposes using TypeScript to build for both the ECMAScript Module format (i.e. ESM or ES Module) and CommonJS Module format. It can be used in Node.js and browser applications.

Snyk Labs 57 Dec 28, 2022
A small JavaScript library to generate YouTube-like ids from numbers.

Hashids is small JavaScript library to generate YouTube-like ids from numbers. Use it when you don't want to expose your database ids to the user: htt

Bazyli Brzóska 3.9k Dec 30, 2022
Makes downloading Scratch projects easy. Simply enter two project IDs and click start.

Makes downloading Scratch projects easy. Simply enter two project IDs and click start. No need to pick the right format or include the assets, all of this is done automatically and in the browser.

null 6 May 27, 2022
npm i uuid, npm i nodemon, npm i commander

goit-nodejs-hw-01 Получаем и выводим весь список контактов в виде таблицы (console.table) node index.js --action list Получаем контакт по id node inde

Oksana Banshchykova 3 Jul 5, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
This is a project that is used to execute python codes in the web page. You can install and use it in django projects, You can do any operations that can be performed in python shell with this package.

Django execute code This is a project that is used to execute python codes in the web page. You can install and use it in django projects, You can do

Shinu 5 Nov 12, 2022
Tool to sign data with a Cardano-Secret-Key // verify data with a Cardano-Public-Key // generate CIP-8 & CIP-36 data

Tool to sign data with a Cardano-Secret-Key // verify data with a Cardano-Public-Key // generate CIP-8 & CIP-36 data

Martin Lang 11 Dec 21, 2022
A pure JavaScript Web Page to retrieve real-time OTP through a web page and generate/scan QR codes.

2FA-Solver A pure JavaScript Web Page to retrieve real-time OTP through a web page and generate/scan QR codes. It can be used as an offline web page b

Yuthan K 8 Dec 7, 2022