printv
TypeScript icon, indicating that this package has built-in type declarations

0.0.15 • Public • Published

printv

Printer Blueetooth

Install

npm install printv
npx cap sync

How to Use

**The printer must be connected to the device via Bluetooth **

you must import the library where you want:

import { PrintV } from "printv";

Definitions

"\n it's a line break"

"[L] It is used to position the text to the left"

"[C] It is used to position the text in the center"

"[R] Used to position the text to the right"

Example

           let textToPrint=   "[L]\n" +

           "[L] <b>bold text</b>\n\n" +
           
            "[C] <b>I am a text in the center</b>\n" +
            
            "[R] I am a text to the right\n" +     
            
            "[L] I am a text to the left\n" +
            
            "[L] <b>inserting text</b>\n" ,
            
            let dataPrinter = textToPrint;

" Information is sent to the printer"

PrintV.blPrint({ value: dataPrinter });

API

echo(...)

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

Returns: Promise<{ value: string; }>


blPrint(...)

blPrint(options: { value: string; }) => boolean
Param Type
options { value: string; }

Returns: boolean


testingMessage()

testingMessage() => boolean

Returns: boolean


getNotifications()

getNotifications() => any

Returns: any


Readme

Keywords

Package Sidebar

Install

npm i printv

Weekly Downloads

3

Version

0.0.15

License

MIT

Unpacked Size

26.8 kB

Total Files

27

Last publish

Collaborators

  • emysaulconsultingdr