| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A lightweight utility to generate, validate, and extract QRIS-compliant payment strings. Built with full support for EMVCo TLV formatting and CRC16 validation.
git clone https://github.com/NeaByteLab/QRIS-Utils.git
cd QRIS-Utils
npm installconst QRIS = require('./src/QRIS')
const staticBase = '00020101021126...6304' // your static QR base
// Generate dynamic QRIS string
const qris = QRIS.generate(staticBase, 10000, 'INV-001', 'Internet Package')
console.log('QRIS:', qris)
// Validate
console.log('Is Valid?', QRIS.validate(qris))
// Extract readable tags
console.log('Extracted:', QRIS.extract(qris))npm testOutput:
✓ should generate a valid QRIS string with CRC ✓ should validate a correct QRIS string ✓ should reject an invalid QRIS string (bad CRC) ✓ should extract readable tags from QRIS ✓ should throw error for QRIS without 6304
. ├── example.js # Sample usage ├── src/QRIS.js # Core utility module ├── test/QRIS.test.js # Jest test suite ├── package.json # Metadata └── README.md # Documentation
MIT License © 2025 NeaByteLab
| Back | FazBrowse Home | New Git URL |