@levischuck/receiptline 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +11 -11
  2. package/dist/index.js +582 -457
  3. package/package.json +2 -1
package/README.md CHANGED
@@ -21,23 +21,23 @@ $ npm install @levischuck/receiptline
21
21
  import { transform, SvgTarget, HtmlTarget } from "@levischuck/receiptline";
22
22
 
23
23
  const body = `Example Receipt
24
+ {image:iVBORw0KGgoAAAANSUhEUgAAAHAAAAAYCAMAAAAVmYlOAAAAAXNSR0IB2cksfwAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZQTFRFAAAA////pdmf3QAAAAlwSFlzAAAuIwAALiMBeKU/dgAAALZJREFUSMftlVESgCAIROH+l25qLIUFRMfpw9EvU5ZnuBTxz4MOcAsglRFEyU0lCKUR0Nc5wLI6A3zTpIGtYBbIo0BeA1TFfeYpoL4VyBIC69I9HQC+kZilRDklFblooKTG2pckMo0IGjGNFOLxrLaoDz7QbAsUymgyG1/sxkB84TSQ3cuL2sK8I7ek6NIuMOQvASqX5oE+kfAIbeeRfuqYllj1HtrC0bceypUUPkraOOePvwvwAi2zCEzzMOsBAAAAAElFTkSuQmCC}
24
25
  (Merchant Copy)
25
26
  ---
26
27
 
27
28
  {w: * 4 8}
28
29
  {b:line}
29
- ||Product | Qty| Price
30
- |--
31
- ||Pad Thai | 1| 14.99
32
- ||Spring Roll | 1| 4.99
33
- |--
30
+ |Product | Qty| Price
31
+ --
32
+ |Pad Thai | 1| 14.99
33
+ |Spring Roll | 1| 4.99
34
+ --
34
35
  {w:* 8}
35
- || Subtotal| 19.98
36
- || Tax (6%)| 1.20
37
- || Convenience Fee| 0.99
38
- || Total| 22.17
36
+ | Subtotal| 19.98
37
+ | Tax (6%)| 1.20
38
+ | Convenience Fee| 0.99
39
+ | Total| 22.17
39
40
  ---
40
-
41
41
  {b:space}
42
42
  {w:auto}
43
43
  Please Sign:
@@ -105,7 +105,7 @@ c
105
105
  - print margin (right) (range: `0` - `24`, default: `0`)
106
106
  - `target` What implementation to use (SvgTarget for SVG output, HtmlTarget for HTML output, instantiate your own to set additional configuration like font)
107
107
  - `encoding`
108
- - `multilingual` (default), others exist if you need to look. They mostly adjust line spacing and default fonts.
108
+ - `cp437` (default), others exist if you need to look. They mostly adjust line spacing and default fonts.
109
109
 
110
110
  `cpl * charWidth` will be the output width, which by default is 576 dots.
111
111