Skip to content

Commit

Permalink
Readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Klemen Kastelic committed May 15, 2015
1 parent 45c0ee0 commit 748d57d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,39 @@
# node-thermal-printer
Commands are sent to ```/dev/usb/lp0```

### Installation
```bash
$ npm install node-thermal-printer
```

### Features
```js
printer.execute(); // Executes all the commands
printer.print("Hello World"); // Append text
printer.println("Hello World"); // Append text with new line
printer.cut(); // Cuts the paper

printer.bold(true); // Set text bold
printer.drawLine(); // Draws a line

printer.alignCenter(); // Align text to center
printer.alignLeft(); // Align text to left
printer.alignRight(); // Align text to right

printer.setTypeFontA(); // Set font type to A (default)
printer.setTypeFontB(); // Set font type to B

printer.setTextNormal(); // Set text to normal
printer.setTextDoubleHeight(); // Set text to double height
printer.setTextDoubleWidth(); // Set text to double width
printer.setTextQuadArea(); // Set text to quad area
```

### Examples
```js
var printer = require("node-thermal-printer");
printer.alignCenter();
printer.println("Hello world");
printer.cut();
printer.execute();
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-thermal-printer",
"version": "0.0.1",
"version": "0.0.3",
"description": "Made to work with Epson thermal printers",
"main": "printer.js",
"scripts": {
Expand Down

0 comments on commit 748d57d

Please sign in to comment.