{"_id":"@anwar1909/react-native-bluetooth-escpos-printer","name":"@anwar1909/react-native-bluetooth-escpos-printer","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@anwar1909/react-native-bluetooth-escpos-printer","version":"0.1.0","description":"Fork of react-native-bluetooth-escpos-printer with JackPOS BLE/ESC/POS optimizations (fast image transfer, RN 0.78 Android).","main":"index.js","scripts":{"prepublishOnly":"node scripts/verify-sources.js"},"keywords":["react-native","escpos","pos","bluetooth","thermal-printer","tspl","jackpos"],"repository":{"type":"git","url":"git+https://github.com/anwar1909/react-native-bluetooth-escpos-printer.git"},"bugs":{"url":"https://github.com/anwar1909/react-native-bluetooth-escpos-printer/issues"},"homepage":"https://github.com/anwar1909/react-native-bluetooth-escpos-printer#readme","author":{"name":"anwar1909"},"license":"MIT","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"peerDependencies":{"react":"*","react-native":">=0.76.0"},"_id":"@anwar1909/react-native-bluetooth-escpos-printer@0.1.0","_nodeVersion":"20.19.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-7Xl0naXxiK9QkoohftzPKq4hxL4vjg1x5ZAaq85Bq4ZgsMewD0CWVBbiB0V7UAOh4SGoMwuxDFSV2c/UiWuy1w==","shasum":"63198d1168d75f241be8813fc623500e6ce32474","tarball":"https://registry.npmjs.org/@anwar1909/react-native-bluetooth-escpos-printer/-/react-native-bluetooth-escpos-printer-0.1.0.tgz","fileCount":513,"unpackedSize":2654177,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQChP/31LR6BqKnTp2Pibd4ulJu3E9hHcO2EnmSGC+zrKAIgMW6w7+NnHvJO24aqyLP1dJA9W4PTUqwadH3JfFasmDg="}]},"_npmUser":{"name":"anwar1909","email":"anwar.sadad1909@gmail.com"},"directories":{},"maintainers":[{"name":"anwar1909","email":"anwar.sadad1909@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react-native-bluetooth-escpos-printer_0.1.0_1780924733579_0.07139959021761322"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-08T13:18:53.430Z","0.1.0":"2026-06-08T13:18:53.830Z","modified":"2026-06-08T13:18:54.014Z"},"maintainers":[{"name":"anwar1909","email":"anwar.sadad1909@gmail.com"}],"description":"Fork of react-native-bluetooth-escpos-printer with JackPOS BLE/ESC/POS optimizations (fast image transfer, RN 0.78 Android).","homepage":"https://github.com/anwar1909/react-native-bluetooth-escpos-printer#readme","keywords":["react-native","escpos","pos","bluetooth","thermal-printer","tspl","jackpos"],"repository":{"type":"git","url":"git+https://github.com/anwar1909/react-native-bluetooth-escpos-printer.git"},"author":{"name":"anwar1909"},"bugs":{"url":"https://github.com/anwar1909/react-native-bluetooth-escpos-printer/issues"},"license":"MIT","readme":"# @anwar1909/react-native-bluetooth-escpos-printer\n\nFork of [react-native-bluetooth-escpos-printer](https://www.npmjs.com/package/react-native-bluetooth-escpos-printer) (0.0.5) with JackPOS production fixes and performance optimizations for Android BLE thermal printers (EP8082, VSC, TSPL).\n\n## Install\n\n```bash\nnpm install @anwar1909/react-native-bluetooth-escpos-printer\n# or\nyarn add @anwar1909/react-native-bluetooth-escpos-printer\n```\n\nRebuild the native app after install (`yarn android` / `pod install`).\n\n## API\n\nSame as the upstream package:\n\n```javascript\nimport {\n  BluetoothManager,\n  BluetoothEscposPrinter,\n  BluetoothTscPrinter,\n} from '@anwar1909/react-native-bluetooth-escpos-printer';\n```\n\n## JackPOS changes (0.1.0+)\n\n### BLE / ESC/POS image print (Android)\n\n- **`writeBulk()`** — large ESC/POS payloads skip per-write settle sleep (avoids double-delay with chunking).\n- **Chunked transfer** — 1024 bytes/chunk, 8 ms inter-chunk delay (was 240 B / 120 ms upstream).\n- **`printRawBytes`** — uses the same fast chunked path.\n- **`PrintPicture.eachLinePixToCmdBatched`** — 32 rows per GS `v 0` stripe (faster BLE + faster physical print vs 1 row/command).\n\n### React Native 0.76–0.78 Android\n\n- `namespace`, `compileSdk 35`, `androidx.core`, modern Gradle `safeExtGet` defaults.\n- Bluetooth permissions / connect flow patches in `RNBluetoothManagerModule`.\n- TSPL label print improvements for large bitmaps.\n\n### New native methods (JackPOS)\n\n- `BluetoothEscposPrinter.printImageBase64(base64, options)` — `width`, `left`, `feedAfter`, `skipInit`, `trimWhite`, `cropTopPx`.\n- `BluetoothEscposPrinter.printRawBytes(base64)` — raw ESC/POS bytes.\n\n## Credits\n\nOriginal library by janus j k lu (MIT). JackPOS fork maintained by [anwar1909](https://github.com/anwar1909).\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","readmeFilename":"README.md","_rev":"1-a5f01309f9605115f28a045a003d71d0"}