{"_id":"@aybinv7/capacitor-thermal-printer","_rev":"3-ea56bd032542b7b6f39bca8ddc892f94","name":"@aybinv7/capacitor-thermal-printer","dist-tags":{"latest":"0.2.8"},"versions":{"0.2.5":{"name":"@aybinv7/capacitor-thermal-printer","version":"0.2.5","keywords":["capacitor","plugin","native","bluetooth","esc","thermal","printer","encoder","android","ios"],"author":{"name":"Malik12tree"},"license":"MIT","_id":"@aybinv7/capacitor-thermal-printer@0.2.5","maintainers":[{"name":"aybinv7","email":"aybinventor7@gmail.com"}],"homepage":"https://github.com/Malik12tree/capacitor-thermal-printer#readme","bugs":{"url":"https://github.com/Malik12tree/capacitor-thermal-printer/issues"},"dist":{"shasum":"e402c85fb8498445983586c1ebec7f7839f1a091","tarball":"https://registry.npmjs.org/@aybinv7/capacitor-thermal-printer/-/capacitor-thermal-printer-0.2.5.tgz","fileCount":82,"integrity":"sha512-I5mwnu/F/BY3h+ZDyo2G2WmXPXfvYC/rBUmPFt3M0oEtf5F0tLNvC/PyV0eKzLgRqxqHj/Wv8XdWizCkaFPyow==","signatures":[{"sig":"MEYCIQCw3yVcBOsoPGFc9n8xhz96tcT/gjOMeMcqy+J/0YbtdAIhAOnvjGdmo6WoAtr+ARssdQS2VG8c1lzcv4qYAV5NZ74G","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7476384},"main":"dist/plugin.cjs.js","_from":"file:aybinv7-capacitor-thermal-printer-0.2.5.tgz","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","docs":"npx typedoc","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && tsc && rollup -c rollup.config.js","clean":"rimraf ./dist","watch":"tsc --watch","eslint":"eslint src/ --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"src/**/*.{css,html,ts,js}\" \"android/src/main/**/*.java\" --plugin=./node_modules/prettier-plugin-java/dist/index.js","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd .."},"_npmUser":{"name":"aybinv7","email":"aybinventor7@gmail.com"},"prettier":"@ionic/prettier-config","_resolved":"C:\\Users\\PC\\AppData\\Local\\Temp\\ea67b75f6e4e3782a7c555f282acc911\\aybinv7-capacitor-thermal-printer-0.2.5.tgz","capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","_integrity":"sha512-I5mwnu/F/BY3h+ZDyo2G2WmXPXfvYC/rBUmPFt3M0oEtf5F0tLNvC/PyV0eKzLgRqxqHj/Wv8XdWizCkaFPyow==","repository":{"url":"git+https://github.com/Malik12tree/capacitor-thermal-printer.git","type":"git"},"_npmVersion":"11.3.0","description":"High-speed, reliable bluetooth ESC thermal printer and encoder Capacitor plugin.","directories":{},"_nodeVersion":"24.1.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.11.0","rimraf":"^3.0.2","rollup":"^2.32.0","typedoc":"^0.26.10","prettier":"^3.0.0","swiftlint":"^1.0.1","typescript":"^5.6.3","@types/node":"^22.7.7","@capacitor/ios":"^7.0.0","@capacitor/core":"^7.0.0","@capacitor/android":"^7.0.0","@ionic/eslint-config":"^0.3.0","prettier-plugin-java":"^2.6.4","@ionic/prettier-config":"^4.0.0","@ionic/swiftlint-config":"^1.1.2","typedoc-plugin-markdown":"^4.2.9"},"peerDependencies":{"@capacitor/core":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-thermal-printer_0.2.5_1759750191824_0.9950933582121813","host":"s3://npm-registry-packages-npm-production"}},"0.2.7":{"name":"@aybinv7/capacitor-thermal-printer","version":"0.2.7","keywords":["capacitor","plugin","native","bluetooth","esc","thermal","printer","encoder","android","ios"],"author":{"name":"Malik12tree"},"license":"MIT","_id":"@aybinv7/capacitor-thermal-printer@0.2.7","maintainers":[{"name":"aybinv7","email":"aybinventor7@gmail.com"}],"homepage":"https://github.com/Malik12tree/capacitor-thermal-printer#readme","bugs":{"url":"https://github.com/Malik12tree/capacitor-thermal-printer/issues"},"dist":{"shasum":"c8e0ccbf80eb828075a332316c2aceb9c31c1040","tarball":"https://registry.npmjs.org/@aybinv7/capacitor-thermal-printer/-/capacitor-thermal-printer-0.2.7.tgz","fileCount":82,"integrity":"sha512-2oXaUSYWeCJ/Y8CQl1UwcxYnqF5WwLayk84wk63RGk6/1EXn+Sa5V9zpqNswLeUj69GodeDLsWbbtMMR9XzAfA==","signatures":[{"sig":"MEUCIEyRvaf1XJHpiQoGEninhXI60lAt3dvYyVYcs20D4uHTAiEAjVhVBghDWvzScBYpmjME2UyXViqHp4MI4EedNCzZe6g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7476417},"main":"dist/plugin.cjs.js","_from":"file:aybinv7-capacitor-thermal-printer-0.2.7.tgz","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","docs":"npx typedoc","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && tsc && rollup -c rollup.config.js","clean":"rimraf ./dist","watch":"tsc --watch","eslint":"eslint src/ --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"src/**/*.{css,html,ts,js}\" \"android/src/main/**/*.java\" --plugin=./node_modules/prettier-plugin-java/dist/index.js","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd .."},"_npmUser":{"name":"aybinv7","email":"aybinventor7@gmail.com"},"prettier":"@ionic/prettier-config","_resolved":"C:\\Users\\PC\\AppData\\Local\\Temp\\325f04440e70a4f43460b6d659231f9e\\aybinv7-capacitor-thermal-printer-0.2.7.tgz","capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","_integrity":"sha512-2oXaUSYWeCJ/Y8CQl1UwcxYnqF5WwLayk84wk63RGk6/1EXn+Sa5V9zpqNswLeUj69GodeDLsWbbtMMR9XzAfA==","repository":{"url":"git+https://github.com/Malik12tree/capacitor-thermal-printer.git","type":"git"},"_npmVersion":"11.3.0","description":"High-speed, reliable bluetooth ESC thermal printer and encoder Capacitor plugin.","directories":{},"_nodeVersion":"24.1.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.11.0","rimraf":"^3.0.2","rollup":"^2.32.0","typedoc":"^0.26.10","prettier":"^3.0.0","swiftlint":"^1.0.1","typescript":"^5.6.3","@types/node":"^22.7.7","@capacitor/ios":"^7.0.0","@capacitor/core":"^7.0.0","@capacitor/android":"^7.0.0","@ionic/eslint-config":"^0.3.0","prettier-plugin-java":"^2.6.4","@ionic/prettier-config":"^4.0.0","@ionic/swiftlint-config":"^1.1.2","typedoc-plugin-markdown":"^4.2.9"},"peerDependencies":{"@capacitor/core":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-thermal-printer_0.2.7_1759751302760_0.8936803283003167","host":"s3://npm-registry-packages-npm-production"}},"0.2.8":{"name":"@aybinv7/capacitor-thermal-printer","version":"0.2.8","description":"High-speed, reliable bluetooth ESC thermal printer and encoder Capacitor plugin.","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","author":{"name":"Malik12tree"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/aybinv7/capacitor-thermal-printer.git"},"bugs":{"url":"https://github.com/aybinv7/capacitor-thermal-printer/issues"},"keywords":["capacitor","plugin","native","bluetooth","esc","thermal","printer","encoder","android","ios"],"scripts":{"verify":"npm run verify:ios && npm run verify:android && npm run verify:web","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:android":"cd android && ./gradlew clean build test && cd ..","verify:web":"npm run build","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","eslint":"eslint src/ --ext ts","prettier":"prettier \"src/**/*.{css,html,ts,js}\" \"android/src/main/**/*.java\" --plugin=./node_modules/prettier-plugin-java/dist/index.js","swiftlint":"node-swiftlint","docs":"npx typedoc","build":"npm run clean && tsc && rollup -c rollup.config.js","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"devDependencies":{"@capacitor/android":"^8.0.0","@capacitor/cli":"^8.0.0","@capacitor/core":"^8.0.0","@capacitor/ios":"^8.0.0","@ionic/eslint-config":"^0.3.0","@ionic/prettier-config":"^4.0.0","@ionic/swiftlint-config":"^1.1.2","@types/node":"^22.7.7","eslint":"^7.11.0","prettier":"^3.0.0","prettier-plugin-java":"^2.6.4","rimraf":"^3.0.2","rollup":"^2.32.0","swiftlint":"^1.0.1","typedoc":"^0.26.10","typedoc-plugin-markdown":"^4.2.9","typescript":"^5.6.3"},"peerDependencies":{"@capacitor/core":">=8.0.0 <9.0.0"},"engines":{"node":">=22.0.0"},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"_id":"@aybinv7/capacitor-thermal-printer@0.2.8","gitHead":"9e5c51b29a6cf99166012aff5e74a1fcebae8730","homepage":"https://github.com/aybinv7/capacitor-thermal-printer#readme","_nodeVersion":"24.1.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-z/n8UNywBhZBjLwOOe+7bGUmOQGG4nQFHfk9wlvJSzRoLvV5cpYn1iVRMvSguUr1WFrWzv3CSPYhizjj/ZRLWQ==","shasum":"de05a7b4a5a1ab3ac978ae0be789f8e5d21e2f13","tarball":"https://registry.npmjs.org/@aybinv7/capacitor-thermal-printer/-/capacitor-thermal-printer-0.2.8.tgz","fileCount":82,"unpackedSize":7476600,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCexbRwZU/W/fr+ixEAOrOipU3X0uDwzUqEj+acPh70LAIhAOvJuJvZlDO74C0I4rxSZr7gT0PX1Zmd73sh+lXtUnsT"}]},"_npmUser":{"name":"aybinv7","email":"aybinventor7@gmail.com"},"directories":{},"maintainers":[{"name":"aybinv7","email":"aybinventor7@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/capacitor-thermal-printer_0.2.8_1784636200706_0.6691744017780643"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-06T11:29:51.757Z","modified":"2026-07-21T12:16:41.085Z","0.2.5":"2025-10-06T11:29:52.108Z","0.2.7":"2025-10-06T11:48:23.048Z","0.2.8":"2026-07-21T12:16:40.937Z"},"bugs":{"url":"https://github.com/aybinv7/capacitor-thermal-printer/issues"},"author":{"name":"Malik12tree"},"license":"MIT","homepage":"https://github.com/aybinv7/capacitor-thermal-printer#readme","keywords":["capacitor","plugin","native","bluetooth","esc","thermal","printer","encoder","android","ios"],"repository":{"type":"git","url":"git+https://github.com/aybinv7/capacitor-thermal-printer.git"},"description":"High-speed, reliable bluetooth ESC thermal printer and encoder Capacitor plugin.","maintainers":[{"name":"aybinv7","email":"aybinventor7@gmail.com"}],"readme":"<h1 align=\"center\">\r\n  <img\r\n    src=\"https://raw.githubusercontent.com/Malik12tree/capacitor-thermal-printer/main/assets/Logo.png\"\r\n    width=\"64\"\r\n    valign=\"middle\"\r\n  />\r\n  <code>capacitor-thermal-printer</code>\r\n  <br>\r\n  <img src=\"https://img.shields.io/badge/bluetooth-6796f9?&logo=bluetooth&logoColor=white\">\r\n  <img src=\"https://img.shields.io/badge/Capacitor-119EFF?logo=Capacitor&logoColor=white\">\r\n  <img src=\"https://img.shields.io/badge/TypeScript-007ACC?logo=typescript&logoColor=white\">\r\n  <img src=\"https://img.shields.io/badge/Android-3DDC84?logo=android&logoColor=white\">\r\n  <img src=\"https://img.shields.io/badge/iOS-157EFB?logo=apple&logoColor=white\">\r\n  <br>\r\n  <img src=\"https://img.shields.io/github/license/Malik12tree/capacitor-thermal-printer?color=orange\">\r\n\r\n</h1>\r\n\r\nHigh-speed, reliable bluetooth ESC thermal printer and encoder Capacitor plugin. Both on Android and iOS!\r\n\r\n- [x] Using the official RTPrinter SDK by [Rongta Technology](https://www.rongtatech.com/) <3\r\n- [x] Cross-platform compatibility (Android & iOS)\r\n- [x] **_Swift_** speeds on iOS of [BLE](https://en.wikipedia.org/wiki/Bluetooth_Low_Energy) **(known for it's pain-in-the-ass speed)**\r\n\r\n## Install\r\n\r\n```bash\r\nnpm install capacitor-thermal-printer --save\r\nnpx cap sync\r\n```\r\n\r\n### Additional iOS Setup\r\n\r\n<img src=\"./assets/ios-include.png\" />\r\n\r\nOpen your iOS project in Xcode, then:\r\n\r\n1. In the left sidebar, select your project (usually named \"App\").\r\n2. Select your main target (usually also named \"App\").\r\n3. Navigate to \"Build Phases\" tab.\r\n4. Under \"Copy Bundle Resources\", click the \"+\" button and choose \"Add Other...\"\r\n5. Navigate to the `node_modules/capacitor-thermal-printer/ios/Plugin/Resources/ble_serial.plist` file and select it\r\n\r\nAnd voilà! You're all set!\r\n\r\n## Example\r\n\r\nMake sure to check the Ionic Angular example in the [example](./example) folder.\r\n\r\n### 1. Import the plugin\r\n\r\n```ts\r\nimport { CapacitorThermalPrinter } from 'capacitor-thermal-printer';\r\n```\r\n\r\n### 2. Connect to printer\r\n\r\n```ts\r\nconst device = await CapacitorThermalPrinter.connect({\r\n  address: 'XX:XX:XX:XX:XX:XX',\r\n});\r\nif (device === null) {\r\n  console.log('Woops, failed to connect!');\r\n} else {\r\n    console.log('Connected!', device.name, device.address);\r\n}\r\n```\r\n\r\nYou can also use the `startScan` method to discover nearby devices.\r\n\r\n- On Android, only printers will be discovered.\r\n- On iOS, all bluetooth devices will be discovered.\r\n\r\n```ts\r\nCapacitorThermalPrinter.addListener('discoverDevices', (devices) => {\r\n  console.log('Discovered devices list:', devices);\r\n});\r\n\r\nawait CapacitorThermalPrinter.startScan();\r\n```\r\n\r\n### 3. Print sample receipt\r\n\r\n```ts\r\nawait CapacitorThermalPrinter.begin()\r\n  .align('center')\r\n\r\n  .image('https://raw.githubusercontent.com/Malik12tree/capacitor-thermal-printer/main/assets/Logo-Black.png')\r\n\r\n  .bold()\r\n  .underline()\r\n  .text('The amazing store\\n')\r\n\r\n  .doubleWidth()\r\n  .text('RECEIPT\\n')\r\n  .clearFormatting()\r\n\r\n  .text('Item 1: $10.00\\n')\r\n  .text('Item 2: $15.00\\n')\r\n\r\n  .align('right')\r\n  .text('Total: $25.00\\n')\r\n\r\n  .align('center')\r\n  .qr('https://example.com')\r\n  .barcode('UPC_A', '123456789012')\r\n\r\n  .cutPaper()\r\n\r\n  .write()\r\n  .then(() => console.log('Printed!'))\r\n  .catch((e) => console.error('Failed to print!', e));\r\n```\r\n\r\n## Documentation\r\n\r\nCheck out the [Docs](./docs/README.md)!\r\n\r\n## Issues\r\n\r\nIf you encounter any issues with this plugin, please report them at [Issues](https://github.com/Malik12tree/capacitor-thermal-printer/issues)\r\n\r\n## Contributing\r\n\r\nWe're open to, and grateful for, any contributions made! Make sure to check [Contribution Guidelines](./CONTRIBUTING.md)\r\n","readmeFilename":"README.md"}