0.2.1 • Published 2 years ago

onis-printer v0.2.1

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

onis-printer

bluetooth and native printer

Installation

npm install onis-printer or yarn add onis-printer

Usage

import {
  initPrinter,
  printText,
  connectBTPrinter,
  initBtPrinter,
  printNewLine,
  setBold,
  setAlign,
  setSmall,
  printLine,
  setLineSpacing,
  feedPaper,
  getPairedDevice,
} from 'onis-printer';

const result = await initPrinter();

await printText('text');

const result = await connectBTPrinter();

await initBtPrinter();

await printNewLine();

await setBold(true / false);

// 100 - center, 101 - right, 102 - left
await setAlign(100);

await setSmall(true / false);

await printLine();

await setLineSpacing(30);

await feedPaper();

const result = await getPairedDevice();

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with Adyasuren

0.2.1

2 years ago

0.2.0

2 years ago

0.1.8

2 years ago

0.1.9

2 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago