{"id":14678869,"url":"https://github.com/lsongdev/node-escpos","last_synced_at":"2026-01-12T07:59:55.588Z","repository":{"id":37335329,"uuid":"41595512","full_name":"lsongdev/node-escpos","owner":"lsongdev","description":"🖨️ ESC/POS Printer driver for Node.js","archived":false,"fork":false,"pushed_at":"2024-09-13T05:51:47.000Z","size":3172,"stargazers_count":1445,"open_issues_count":104,"forks_count":424,"subscribers_count":29,"default_branch":"v3","last_synced_at":"2025-04-06T02:48:18.305Z","etag":null,"topics":["bluetooth","drivers","escpos","hardware","network","nodejs","printer","serialport","thermal-printing","usb"],"latest_commit_sha":null,"homepage":"https://npmjs.org/escpos","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lsongdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"song940","patreon":"song940","open_collective":"song940","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://git.io/fjRcB"}},"created_at":"2015-08-29T14:10:39.000Z","updated_at":"2025-04-05T02:51:37.000Z","dependencies_parsed_at":"2024-06-05T10:13:44.316Z","dependency_job_id":"607efd08-ffe7-4674-8904-1b90ec3d173a","html_url":"https://github.com/lsongdev/node-escpos","commit_stats":{"total_commits":214,"total_committers":52,"mean_commits":4.115384615384615,"dds":0.6448598130841121,"last_synced_commit":"465cd2653ce94ad4f8157f48dcbd3ec0aac0019c"},"previous_names":["lsongdev/node-escpos","song940/node-escpos"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnode-escpos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnode-escpos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnode-escpos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnode-escpos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsongdev","download_url":"https://codeload.github.com/lsongdev/node-escpos/tar.gz/refs/heads/v3","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248439620,"owners_count":21103642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bluetooth","drivers","escpos","hardware","network","nodejs","printer","serialport","thermal-printing","usb"],"created_at":"2024-09-12T10:01:29.156Z","updated_at":"2026-01-12T07:59:55.579Z","avatar_url":"https://github.com/lsongdev.png","language":"TypeScript","readme":"## ESCPOS PROJECT\n\nESC/POS Printer driver for Node.js\n\n[![npm version](https://badge.fury.io/js/escpos.svg)](https://www.npmjs.com/package/escpos )\n[![Build Status](https://travis-ci.org/song940/node-escpos.svg?branch=master)](https://travis-ci.org/song940/node-escpos)\n\n[![NPM](https://nodei.co/npm/escpos.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://npmjs.org/escpos )\n\nPackages Available:\n\n+ [escpos Printer](packages/printer/README.md)\n+ [escpos Screen Display](packages/screen/README.md)\n+ [escpos USB Adapter](packages/usb/README.md)\n+ [escpos Network Adapter](packages/network/README.md)\n+ [escpos Bluetooth Adapter](packages/bluetooth/README.md)\n+ [escpos SerialPort Adapter](packages/serialport/README.md)\n\n## Example\n\n````javascript\nconst escpos = require('escpos');\n// install escpos-usb adapter module manually\nescpos.USB = require('escpos-usb');\n// Select the adapter based on your printer type\nconst device  = new escpos.USB();\n// const device  = new escpos.Network('localhost');\n// const device  = new escpos.Serial('/dev/usb/lp0');\n\nconst options = { encoding: \"GB18030\" /* default */ }\n// encoding is optional\n\nconst printer = new escpos.Printer(device, options);\n\ndevice.open(function(error){\n  printer\n  .font('a')\n  .align('ct')\n  .style('bu')\n  .size(1, 1)\n  .text('The quick brown fox jumps over the lazy dog')\n  .text('敏捷的棕色狐狸跳过懒狗')\n  .barcode('1234567', 'EAN8')\n  .table([\"One\", \"Two\", \"Three\"])\n  .tableCustom(\n    [\n      { text:\"Left\", align:\"LEFT\", width:0.33, style: 'B' },\n      { text:\"Center\", align:\"CENTER\", width:0.33},\n      { text:\"Right\", align:\"RIGHT\", width:0.33 }\n    ],\n    { encoding: 'cp857', size: [1, 1] } // Optional\n  )\n  .qrimage('https://github.com/song940/node-escpos', function(err){\n    this.cut();\n    this.close();\n  });\n});\n````\n- See `./examples` for more examples.\n\n----\n\n## Screencast\n\n![img_1031](https://user-images.githubusercontent.com/8033320/29250339-d66ce470-807b-11e7-89ce-9962da88ca18.JPG)\n\n----\n\n## Contributing\n- Fork this repo\n- Clone your repo\n- Install dependencies\n- Checkout a feature branch\n- Feel free to add your features\n- Make sure your features are fully tested\n- Open a pull request, and enjoy \u003c3\n\n----\n\n## Contributors\n\nThanks to our [contributors][contributors-href] 🎉👏\n\n+ [Tao Yuan](https://github.com/taoyuan)\n+ [Jose Vera](https://github.com/jor3l)\n+ [Sébastien Vidal](https://github.com/Psychopoulet)\n+ [Yu Yongwoo](https://github.com/uyu423)\n+ [Attawit Kittikrairit](https://github.com/atton16)\n+ [Michael Kuenzli](https://github.com/pfirpfel)\n\n[![](https://opencollective.com/node-escpos/contributors.svg?width=890\u0026button=false)][contributors-href]\n\n----\n\n### MIT license\nCopyright (c) 2015 ~ now Lsong \u003chi@lsong.org\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \u0026quot;Software\u0026quot;), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \u0026quot;AS IS\u0026quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n---\n\n[contributors-href]: https://github.com/song940/node-escpos/graphs/contributors\n\n","funding_links":["https://github.com/sponsors/song940","https://patreon.com/song940","https://opencollective.com/song940","https://git.io/fjRcB"],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Fnode-escpos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsongdev%2Fnode-escpos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Fnode-escpos/lists"}