All Projects → song940 → Node Escpos

song940 / Node Escpos

Licence: other
🖨️ ESC/POS Printer driver for node

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Node Escpos

Elinux
嵌入式 Linux 知识库 (elinux.org) 中文翻译计划;本项目发起人发布了《360° 剖析 Linux ELF》视频课程,欢迎订阅:https://www.cctalk.com/m/group/88089283
Stars: ✭ 193 (-74.34%)
Mutual labels:  hardware, network, drivers
Usbserial
Usb serial controller for Android
Stars: ✭ 1,301 (+73.01%)
Mutual labels:  hardware, usb, serialport
Blynk Library
Blynk library for embedded hardware. Works with Arduino, ESP8266, Raspberry Pi, Intel Edison/Galileo, LinkIt ONE, Particle Core/Photon, Energia, ARM mbed, etc.
Stars: ✭ 3,305 (+339.49%)
Mutual labels:  hardware, serialport, bluetooth
React Native Esc Pos
A React Native ESC/POS module to help you connect to your ESC/POS printer easily.
Stars: ✭ 65 (-91.36%)
Mutual labels:  printer, network, bluetooth
gobot
Golang framework for robotics, drones, and the Internet of Things (IoT)
Stars: ✭ 7,869 (+946.41%)
Mutual labels:  hardware, bluetooth
openEMSstim
openEMSstim: open-hardware module to adjust the intensity of EMS/TENS stimulators.
Stars: ✭ 90 (-88.03%)
Mutual labels:  hardware, bluetooth
pyrfidhid
Python library to control Chinese USB HID 125Khz RFID Reader/Writer
Stars: ✭ 104 (-86.17%)
Mutual labels:  usb, drivers
ccid-utils
A USB smartcard driver including GSM SIM and EMV credit/debit card development platforms
Stars: ✭ 37 (-95.08%)
Mutual labels:  usb, drivers
cala
Cross-platform system interface for hardware IO
Stars: ✭ 46 (-93.88%)
Mutual labels:  hardware, bluetooth
azalea
main board for the GreatFET project, also known as GreatFET One
Stars: ✭ 52 (-93.09%)
Mutual labels:  usb, hardware
Coderyi.github.io
Don't fork! coderyi's blog,about iOS ,CS and my code life.
Stars: ✭ 349 (-53.59%)
Mutual labels:  network, bluetooth
arduino
required (and optional) source files for the Arduino development environment, specifically the hardware/arduino sub-directory, to support xmega processors
Stars: ✭ 18 (-97.61%)
Mutual labels:  usb, hardware
DualSenseWindows UE4
Unreal Engine 4 port of the Windows API for the PS5 DualSense controller created at Ohjurot/DualSense-Windows
Stars: ✭ 25 (-96.68%)
Mutual labels:  usb, bluetooth
IOsonata
IOsonata multi-platform multi-architecture power & performance optimized software library for fast and easy IoT MCU firmware development. Object Oriented design, no board package to define, just pure plug & play any boards
Stars: ✭ 40 (-94.68%)
Mutual labels:  bluetooth, drivers
SmartSpin2k
Transform your spin bike into a Smart Trainer!
Stars: ✭ 88 (-88.3%)
Mutual labels:  hardware, bluetooth
Gimx
The GIMX software.
Stars: ✭ 421 (-44.02%)
Mutual labels:  usb, bluetooth
Stats
macOS system monitor in your menu bar
Stars: ✭ 7,134 (+848.67%)
Mutual labels:  network, bluetooth
Hidapi
A Simple library for communicating with USB and Bluetooth HID devices on Linux, Mac and Windows.
Stars: ✭ 465 (-38.16%)
Mutual labels:  usb, bluetooth
Helenos
A portable microkernel-based multiserver operating system written from scratch.
Stars: ✭ 553 (-26.46%)
Mutual labels:  usb, drivers
Bluetooth-Speaker
MouDio: a compact and portable Bluetooth speaker with high-quality components for powerful, clear sound. Moudio is built using four PCBs and laser-cut acrylic grills with 3D printed parts, and it can be easily assembled using the provided instructions.
Stars: ✭ 27 (-96.41%)
Mutual labels:  hardware, bluetooth

ESCPOS PROJECT

ESC/POS Printer driver for Node.js

npm version Build Status

NPM

Packages Available:

Example

const escpos = require('escpos');
// install escpos-usb adapter module manually
escpos.USB = require('escpos-usb');
// Select the adapter based on your printer type
const device  = new escpos.USB();
// const device  = new escpos.Network('localhost');
// const device  = new escpos.Serial('/dev/usb/lp0');

const options = { encoding: "GB18030" /* default */ }
// encoding is optional

const printer = new escpos.Printer(device, options);

device.open(function(error){
  printer
  .font('a')
  .align('ct')
  .style('bu')
  .size(1, 1)
  .text('The quick brown fox jumps over the lazy dog')
  .text('敏捷的棕色狐狸跳过懒狗')
  .barcode('1234567', 'EAN8')
  .table(["One", "Two", "Three"])
  .tableCustom(
    [
      { text:"Left", align:"LEFT", width:0.33, style: 'B' },
      { text:"Center", align:"CENTER", width:0.33},
      { text:"Right", align:"RIGHT", width:0.33 }
    ],
    { encoding: 'cp857', size: [1, 1] } // Optional
  )
  .qrimage('https://github.com/song940/node-escpos', function(err){
    this.cut();
    this.close();
  });
});
  • See ./examples for more examples.

Screencast

img_1031


Contributing

  • Fork this repo
  • Clone your repo
  • Install dependencies
  • Checkout a feature branch
  • Feel free to add your features
  • Make sure your features are fully tested
  • Open a pull request, and enjoy <3

Contributors

Thanks to our contributors 🎉👏


MIT license

Copyright (c) 2015 ~ now Lsong [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].