npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vietqr-gen

v1.0.1

Published

QR code generator with VietQR logo support

Downloads

4

Readme

VietQR Generator

A command-line tool for generating VietQR codes and embedding them into SVG templates.

Installation

Install globally using npm:

npm install -g vietqr-gen

Usage

Once installed globally, you can run the tool using:

vietqr-gen -c <csv-file> [-t <template-file>] -o <output-directory>

Parameters

  • -c, --csv: CSV file with bank account and VietQR data
  • -t, --template: SVG template file (defaults to template.svg in package directory)
  • -o, --output: Output directory for generated files
  • -l, --logo: Optional logo path:
    • Default: Built-in VietQR logo
    • Use -l none to generate QR codes without logo
    • Use -l path/to/logo.svg for custom logo

CSV Format

Required CSV columns:

  • ID: Identifier (optional)
  • STK: Bank account reference code
  • GenQR: VietQR data string

Example CSV:

ID,STK,GenQR
BIDV1,V3CASLRPR13MT76,00020101021138590010A000000727012900069704180115V3CASLRPR13MT760208QRIBFTTA53037045802VN6304ABD7
BIDV2,V3CASLHRE4GFPY5,00020101021138590010A000000727012900069704180115V3CASLHRE4GFPY50208QRIBFTTA53037045802VN6304B5EA

Template Format

Your SVG template must contain:

<g id="qrcode">
    <rect width="1299" height="1299" x="642.5" y="1091.5" />
</g>

Exporting from Figma

To create a compatible template from Figma:

  1. Create a frame with your desired design
  2. Add a rectangle where you want the QR code to appear
  3. Group the rectangle and name the group "qrcode"
  4. Export as SVG

Figma Export Guide

Quick Start

  1. Save your VietQR data in a CSV file (e.g., data.csv)
  2. Run with default template:
vietqr-gen -c data.csv -o output
  1. Or use your own template:
vietqr-gen -c data.csv -t custom-template.svg -o output
  1. Run with desired logo option:
# Use default template
vietqr-gen -c data.csv -o output

# Specify custom template
vietqr-gen -c data.csv -t custom-template.svg -o output

# No logo
vietqr-gen -c data.csv -o output -l none

# Custom logo
vietqr-gen -c data.csv -o output -l custom-logo.svg

Generated files will be named using the STK values (e.g., V3CASLRPR13MT76.svg).

Dependencies

  • qr-code-styling: QR code generation
  • csv-parse: CSV file processing
  • commander: Command-line interface
  • fs-extra: File system operations

License

MIT License - Copyright (c) 2024 TuanPM

See LICENSE for details.