0.0.15 • Published 3 years ago
printv v0.0.15
printv
Printer Blueetooth
Install
npm install printv
npx cap syncHow 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() => booleanReturns: boolean
getNotifications()
getNotifications() => anyReturns: any