You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

pdf417js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf417js

PDF417 barcode generator

0.1.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

PDF417.js

TypeScript implementation of PDF417 barcode generator.

日本語版ドキュメントはこちら

Features

  • 🚀 Pure TypeScript implementation - no external dependencies
  • 🌐 Web standards compliant - works in any modern browser and workers ... maybe
  • 📦 Standalone library - easy to integrate into any project
  • 🔧 Fully customizable barcode generation
  • 📱 Responsive and scalable output

Installation

npm install pdf417js

Usage

import { PDF417 } from "pdf417js";

// Create a new instance
const pdf417 = new PDF417();

// Generate barcode
const barcode = pdf417.generate("Hello, World!");

// Get barcode as string
console.log(pdf417.toString());

Options

You can customize the barcode generation with the following options:

const pdf417 = new PDF417({
  rowHeight: 4, // Height of each row in modules
  quietH: 2, // Horizontal quiet zone in modules
  quietV: 2, // Vertical quiet zone in modules
});

Development

# Install dependencies
npm install

# Run tests
npm test

# Build
npm run build

License

ISC

FAQs

Package last updated on 17 May 2025

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