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

@pexcode/qds-print-sdk

v3.5.3

Published

SDK for printing shipping labels with QR codes , This is a TypeScript library published under an pexcode to help users and developers to use quickdeliverysystem print.

Readme

QDS Print SDK

pexcode.com · quickdeliverysystem.com

TypeScript SDK for printing Quick Delivery System shipping labels to thermal printers using QZ Tray and ESC/POS commands. Labels include recipient/sender/shipping details, a scannable QR code, and formatted date.


Install

npm i @pexcode/qds-print-sdk

or

npm i --save @pexcode/qds-print-sdk

Requirements

  • QZ Tray must be installed and running on the machine (download from qz.io).
  • A thermal printer (58mm or 80mm) configured and available to QZ Tray.

Usage

Basic

import QDSPrint, { type PrintData } from "@pexcode/qds-print-sdk";

// printerName: exact or partial name as shown in QZ Tray
// printerSize: "58mm" or "80mm" (default: "80mm")
const printer = new QDSPrint("My Thermal Printer", "80mm");

const data: PrintData = {
  id: "123456",
  uuid: "abcd-efgh-ijkl",
  dest_name: "John Doe",
  dest_address: "123 Main St, Paris",
  sender_name: "Jane Smith",
  sender_address: "45 Rue de Lyon, Paris",
  created_at: new Date().toISOString(),
  shipping: {
    name: "QDS Warehouse",
    address: "456 Route de Lille, France",
    id: "WH-001",
  },
};

// Single label
await printer.print(data);

// Multiple labels (printed in sequence)
await printer.printBulk([data, data2, data3]);

Printer size

  • "80mm" (default): wider line, larger QR code.
  • "58mm": narrower line, smaller QR for narrow rolls.
const printer58 = new QDSPrint("My 58mm Printer", "58mm");
const printer80 = new QDSPrint("My 80mm Printer"); // 80mm by default

Error handling (QZ Tray not running)

import QDSPrint, { QZTrayNotRunningError } from "@pexcode/qds-print-sdk";

const printer = new QDSPrint("My Printer", "80mm");

try {
  await printer.print(data);
} catch (err) {
  if (err instanceof QZTrayNotRunningError) {
    console.error("Start QZ Tray and try again.");
  } else {
    throw err;
  }
}

Types

| Type | Description | |------|-------------| | PrintData | Full label payload: id, uuid, dest_, sender_, created_at, shipping | | ShippingInfo | shipping.name, shipping.address, shipping.id | | PrinterSize | "58mm" \| "80mm" |


Note

This package provides the Quick Delivery System label format and is not intended to be customized. If you need the same layout for your own system, you can still use the SDK as-is.