🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@robinpath/barcode

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robinpath/barcode

QR code generation, EAN/UPC barcode validation, ISBN conversion, and Luhn checksum

latest
npmnpm
Version
0.3.0
Version published
Maintainers
4
Created
Source

@robinpath/barcode

QR code generation, EAN/UPC barcode validation, ISBN conversion, and Luhn checksum

Category Functions Auth License

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

robinpath add @robinpath/barcode

Quick Start

No credentials needed — start using it right away:

barcode.qrToFile "https://example.com" "./qr.png"

Available Functions

FunctionDescription
barcode.qrGenerateGenerate QR code as data URL
barcode.qrToFileGenerate QR code to file
barcode.qrToSvgGenerate QR code as SVG
barcode.qrToTerminalGenerate QR for terminal
barcode.ean13ValidateValidate EAN-13 barcode
barcode.ean13ChecksumCalculate EAN-13 check digit
barcode.upcValidateValidate UPC-A barcode
barcode.upcChecksumCalculate UPC-A check digit
barcode.isbn10ValidateValidate ISBN-10
barcode.isbn13ValidateValidate ISBN-13
barcode.isbn10to13Convert ISBN-10 to ISBN-13
barcode.isbn13to10Convert ISBN-13 to ISBN-10
barcode.luhnValidate Luhn checksum
barcode.luhnGenerateGenerate 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.

License

MIT

Keywords

barcode

FAQs

Package last updated on 06 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts