0.2.0 • Published 2 years ago

capacitor-zebra-printer v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

capacitor-zebra-printer

Capacitor plugin to send ZPL messages directly to Zebra printers via TCP/IP. It is a combination of ionic-zebra-printer android implementation and ionic-zebra-label-printer iOS implementation.

Fork changes:

Install

yarn add capacitor-zebra-printer

or

npm install capacitor-zebra-printer

and finally

npx cap sync

How to use

import { CapacitorZebraPrinter } from "capacitor-zebra-printer";

const printUtils = {
  printZpl: async ({
    zpl,
    ip,
    port,
  }: {
    zpl: string;
    ip: string;
    port: number;
  }) => {
    return await CapacitorZebraPrinter.print({
      ip,
      port,
      zpl,
    }).then((res) => {
      return res && res.value == "success";
    });
  },
};

export default printUtils;

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


print(...)

print(options: PrintOptions) => Promise<{ value: string; }>
ParamType
optionsPrintOptions

Returns: Promise<{ value: string; }>


Type Aliases

PrintOptions

{ ip: string; port: number; zpl: string }

0.1.0

2 years ago

0.2.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago