{"id":21904006,"url":"https://github.com/m1ga/ti.thermalprinter","last_synced_at":"2025-08-10T11:04:41.316Z","repository":{"id":80614925,"uuid":"433189676","full_name":"m1ga/ti.thermalprinter","owner":"m1ga","description":"ESC/POS thermal printer library for Titanium (Android) ","archived":false,"fork":false,"pushed_at":"2022-07-21T15:57:23.000Z","size":469,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-19T12:42:43.982Z","etag":null,"topics":["android","mobile","titanium-mobile","titanium-module"],"latest_commit_sha":null,"homepage":"","language":"Java","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/m1ga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2021-11-29T20:37:52.000Z","updated_at":"2024-11-11T17:22:28.000Z","dependencies_parsed_at":"2023-07-08T02:46:03.197Z","dependency_job_id":null,"html_url":"https://github.com/m1ga/ti.thermalprinter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m1ga/ti.thermalprinter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1ga%2Fti.thermalprinter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1ga%2Fti.thermalprinter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1ga%2Fti.thermalprinter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1ga%2Fti.thermalprinter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m1ga","download_url":"https://codeload.github.com/m1ga/ti.thermalprinter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1ga%2Fti.thermalprinter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269713883,"owners_count":24463244,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","mobile","titanium-mobile","titanium-module"],"created_at":"2024-11-28T15:30:51.407Z","updated_at":"2025-08-10T11:04:41.270Z","avatar_url":"https://github.com/m1ga.png","language":"Java","funding_links":["https://www.buymeacoffee.com/miga"],"categories":[],"sub_categories":[],"readme":"# Ti.Thermalprinter - ESC/POS thermal printer library for Titanium (Android)\n\nAppcelerator Titanium library that implements https://github.com/DantSu/ESCPOS-ThermalPrinter-Android to print with (Bluetooth, TCP, USB) ESC/POS thermal printer\n\n## Installation\n\n* `\u003cmodule\u003eti.thermalprinter\u003c/module\u003e` in tiapp.xml\n* add this to your build.gradle:\n```\nrepositories {\n    maven { url 'https://jitpack.io' }\n}\n```\n* `const ThermalPrinter = require(\"ti.thermalprinter\")`\n\n## Constants\n* TYPE_BLUETOOTH\n* TYPE_TCP\n* TYPE_USB\n\n## Methods\n\n* `requestPermissions()`\n* `print({connection, text, [ip, port, timeout, dpi, width, cpl});`\n  * `connection`: TYPE_BLUETOOTH | TYPE_TCP | TYPE_USB\n  * `text`: actual text. See https://github.com/DantSu/ESCPOS-ThermalPrinter-Android#formatted-text--syntax-guide for syntax\u003cbr/\u003e\u003cbr/\u003e\n\n  if `connection` is `TYPE_TCP` you have to set:\n  * `ip` (String), `port`, `dpi`, `width` and `cpl` (characters per line)\n\n* `getUSBList()` prints a list of connected USB devices to the console. Only for debug at the moment\n* `scanPrinters()` prints a list of BLE devices to the console. Only for debug at the moment\n\n## Example\n\n```js\nconst ThermalPrinter = require(\"ti.thermalprinter\");\nThermalPrinter.print({\n  connection: ThermalPrinter.TYPE_BLUETOOTH,\n  text: \"[C]================================\\n\" +\n        \"[L]\\n\" +\n        \"[L]\u003cfont size='tall'\u003eCustomer :\u003c/font\u003e\\n\" +\n        \"[L]User name\\n\" +\n        \"[L]Street No 7\\n\" +\n        \"[L]1234 place\\n\" +\n        \"[L]Tel : +123456\\n\" +\n        \"[L]\\n\" +\n        \"[C]\u003cqrcode size='20'\u003ehttp://www.migaweb.de/\u003c/qrcode\u003e\"\n});\n```\n\n## TODO\n\n* add support for images\n* add \"getList\" to select a different printer. Currently it will use the first one\n\n\n## Author\n\n* Michael Gangolf (\u003ca href=\"https://github.com/m1ga\"\u003e@MichaelGangolf\u003c/a\u003e / \u003ca href=\"https://www.migaweb.de\"\u003eWeb\u003c/a\u003e)\n\n\u003cspan class=\"badge-buymeacoffee\"\u003e\u003ca href=\"https://www.buymeacoffee.com/miga\" title=\"donate\"\u003e\u003cimg src=\"https://img.shields.io/badge/buy%20me%20a%20coke-donate-orange.svg\" alt=\"Buy Me A Coke donate button\" /\u003e\u003c/a\u003e\u003c/span\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm1ga%2Fti.thermalprinter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm1ga%2Fti.thermalprinter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm1ga%2Fti.thermalprinter/lists"}