0.2.1 • Published 1 year ago

onis-printer v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.2.0

1 year ago

0.1.8

1 year ago

0.1.9

1 year ago

0.1.7

1 year ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago