brother-smooth-print-uri
v1.2.0
Published
URI Generator for Brother Smooth Print
Maintainers
Readme
Brother Smooth Print URI Generator
This is a simple URI generator for printing using the Brother Smooth Print app.
Learn more about Brother Smooth Print here.
Usage
import { generatePrintUri } from "brother-smooth-print-uri";
// Using filename and size URLs
const uri = generatePrintUri({
filename: "https://example.com/Simple.lbx",
size: "https://example.com/26x76.bin",
});
// Or using base64-encoded file attachments
const uriWithAttachments = generatePrintUri({
fileattach: "base64EncodedLbxData",
sizeattach: "base64EncodedBinData",
});Note: You must provide exactly one of filename or fileattach, and exactly one of size or sizeattach. Providing both or neither will throw an error.
See more examples in the tests: src/uri-generator.test.ts.
This package only creates the URI, it does not initiate the actual print job.
Limitations
- It doesn't include all parameters.
- It only supports single layout printing.
- Does not describe which printer series supports what.
Feel free to contribute.
