Modules@robinpath/barcode
@robinpath/barcode
0.1.1PublicQR code generation, EAN/UPC barcode validation, ISBN conversion, and Luhn checksum
@robinpath/barcode
QR code generation, EAN/UPC barcode validation, ISBN conversion, and Luhn checksum
Why use this module?
The barcode module lets you:
- Generate QR code as data URL
- Generate QR code to file
- Generate QR code as SVG
- Generate QR for terminal
- Validate EAN-13 barcode
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/barcode
Quick Start
No credentials needed — start using it right away:
barcode.qrToFile "https://example.com" "./qr.png"
Available Functions
| Function | Description |
|---|---|
barcode.qrGenerate | Generate QR code as data URL |
barcode.qrToFile | Generate QR code to file |
barcode.qrToSvg | Generate QR code as SVG |
barcode.qrToTerminal | Generate QR for terminal |
barcode.ean13Validate | Validate EAN-13 barcode |
barcode.ean13Checksum | Calculate EAN-13 check digit |
barcode.upcValidate | Validate UPC-A barcode |
barcode.upcChecksum | Calculate UPC-A check digit |
barcode.isbn10Validate | Validate ISBN-10 |
barcode.isbn13Validate | Validate ISBN-13 |
barcode.isbn10to13 | Convert ISBN-10 to ISBN-13 |
barcode.isbn13to10 | Convert ISBN-13 to ISBN-10 |
barcode.luhn | Validate Luhn checksum |
barcode.luhnGenerate | Generate Luhn check digit |
Examples
Generate QR code to file
barcode.qrToFile "https://example.com" "./qr.png"
Generate QR code as SVG
barcode.qrToSvg "hello"
Generate QR for terminal
barcode.qrToTerminal "hello"
Integration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/barcode";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
barcode.qrToFile "https://example.com" "./qr.png"
`);
Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/json— JSON module for complementary functionality
License
MIT
Versions (1)
| Version | Tag | Published |
|---|---|---|
| 0.1.1 | latest | yesterday |
Related Modules
utilities
1
@dev-tester/hello-world
v2.0.0dev-tester
Updated description
0 downloads
...
utilities
0
@robinpath/apollo
v0.1.1robinpath
Apollo module for RobinPath.
0 downloads
...
utilities
0
@robinpath/archive
v0.1.1robinpath
Create and extract .zip and .tar.gz file archives
0 downloads
...
utilities
0
@robinpath/assert
v0.1.1robinpath
Testing assertions: equal, deepEqual, truthy, falsy, type checks, includes, matches, throws, and more
0 downloads
...
Install
$ robinpath install @robinpath/barcode Version0.1.1
LicenseMIT
Unpacked Size4.5 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

