{"_id":"ionic-zebra-label-printer","_rev":"29-925054a2ed84245a64a55aaa88a3b9f8","name":"ionic-zebra-label-printer","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.24":{"name":"ionic-zebra-label-printer","version":"0.0.24","keywords":["ionic","capacitor","plugin","native","android","ios","web"],"author":{"name":"Joey Geraeds"},"license":"MIT","_id":"ionic-zebra-label-printer@0.0.24","maintainers":[{"name":"jgeraeds","email":"joeygeraeds@gmail.com"}],"homepage":"https://bitbucket.org/JoJo-Bear/ionic-zebra-label-printer#readme","bugs":{"url":"https://JoJo-Bear@bitbucket.org/JoJo-Bear/ionic-zebra-label-printer.git/issues"},"dist":{"shasum":"c41d0d68b92ac418c65dd352aa924245514ec1d4","tarball":"https://registry.npmjs.org/ionic-zebra-label-printer/-/ionic-zebra-label-printer-0.0.24.tgz","fileCount":97,"integrity":"sha512-hdRF6vStKx8yH+JsTC/APRBavYnniorMlSwYZ0XZy//7zXidDft9I381RA+c+5DtRbgmn3SUMPa/Lwz7YJBAHQ==","signatures":[{"sig":"MEYCIQChXfKVVdXrp1fPfqyxqiNtGc2DR/6DNnkjhLqXiCuMWQIhAPTxXUc3e5ZYLVDazxa9vDqFGRnd8o3gtP46jZ/JJ8Cg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":303303,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLlM0CRA9TVsSAnZWagAANx0P/AsSsWjRcvp8ro6y4PZY\n2v4nOvATbBiVY8PMx3X3AF5WoTmMjhBm0KBWbIfaZ4IeV2QNHxE2Z9yrQFnb\nWl8ksQLkDEv68kApCpPhDUYxtATnGZshPPA4iiDVCTzn+MwPhHCyKfJZf4ca\n7oAspGLZFkq3ujLGFw/NlTWbtkeOZ3R/GnYg94+e11mC/UDMxMcOzGCHwrYj\ny3NORzJTzXrh/MSUCqmiJG0gh/qowN88nD+2GOlxCz1wC4sh4wa0cXB0DeDF\nON5AWR10MOWMkrvuk8vh13/lhevNKS5oE501bi0PT4m+OVq4nuzF01ljJpRX\nXlYW3FVA4fnD3KU0Ke8lVPAh6q4pcD92NtzLW4+TN8ELCFju9jvxRqboHS9o\nLP4LELvgRtTozJe19ehTIkWIRZ8+coyJsanwK9JVSWf+NH3Xtxr/Gdedqv3/\nt5e6aUR6mf2zbhmliiKdE9wOqXhZ4Jsof8qB+P6epxOtGnRAPwylmhl10CKg\nY+YaditX5Yc7S7kCfkUpfeId9GiVqy+xRBystOhfL9Jf3fnTGmIZgAcMZDN5\nz8TOVG0bVtVvLnDztzdA3QgMtaTf6+vxqSdyWGhaegyOK3nwsrdGFTS6sIwb\nve4eoG/ecotzR1n/lsDuGLElyLj923d9zLjMfHs4gOrcIqPgCrqWcKDVyXXj\nP+eU\r\n=5SO0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/plugin.js","types":"dist/esm/index.d.ts","module":"dist/esm/index.js","gitHead":"2e618ad96d9ad91e338d7289c6ca3a5cb485cc7d","scripts":{"lint":"npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && tsc && rollup -c rollup.config.js","clean":"rimraf ./dist","watch":"tsc --watch","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","prepublishOnly":"npm run build"},"_npmUser":{"name":"jgeraeds","email":"joeygeraeds@gmail.com"},"prettier":"@ionic/prettier-config","capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://JoJo-Bear@bitbucket.org/JoJo-Bear/ionic-zebra-label-printer.git","type":"git"},"_npmVersion":"6.13.6","description":"print labels with an zebra label printer on the local network","directories":{},"_nodeVersion":"13.7.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^3.0.2","rollup":"^2.28.2","prettier":"^2.1.2","swiftlint":"^1.0.1","typescript":"~3.8.3","@capacitor/ios":"^2.4.2","@capacitor/core":"^2.4.2","@capacitor/android":"^2.4.2","prettier-plugin-java":"^0.8.2","@ionic/prettier-config":"^1.0.1","@ionic/swiftlint-config":"^1.1.2","@rollup/plugin-node-resolve":"^8.1.0"},"peerDependencies":{"@capacitor/core":"^2.4.0"},"_npmOperationalInternal":{"tmp":"tmp/ionic-zebra-label-printer_0.0.24_1613648692272_0.23312773455263058","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"ionic-zebra-label-printer","version":"1.0.0","description":"print labels with an zebra label printer on the local network","main":"dist/plugin.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"lint":"npm run prettier -- --check && npm run swiftlint -- lint","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","build":"npm run clean && tsc && rollup -c rollup.config.js","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"Joey Geraeds"},"license":"MIT","devDependencies":{"@capacitor/android":"^6.0.0","@capacitor/cli":"^6.0.0","@capacitor/core":"^6.0.0","@capacitor/ios":"^6.0.0","@ionic/prettier-config":"^1.0.1","@ionic/swiftlint-config":"^1.1.2","@rollup/plugin-node-resolve":"^8.1.0","prettier":"^2.8.8","prettier-plugin-java":"^1.0.2","rimraf":"^3.0.2","rollup":"^2.79.1","swiftlint":"^1.0.1","typescript":"^4.9.5"},"peerDependencies":{"@capacitor/core":"^6.0.0"},"keywords":["ionic","capacitor","plugin","native","android","ios","web"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","repository":{"type":"git","url":"git+https://JoJo-Bear@bitbucket.org/JoJo-Bear/ionic-zebra-label-printer.git"},"bugs":{"url":"https://JoJo-Bear@bitbucket.org/JoJo-Bear/ionic-zebra-label-printer.git/issues"},"_id":"ionic-zebra-label-printer@1.0.0","gitHead":"8235192491423d651021d60279b879887594afe9","homepage":"https://bitbucket.org/JoJo-Bear/ionic-zebra-label-printer#readme","_nodeVersion":"20.16.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-2foAJQH8DuB2KiYn7PDlMsf4HHqM032S8cyE58tcpbfBETTGD23d2XNOXri7tQah19AObDTriKYh1Cr7310Skw==","shasum":"5f5da19dde11ced78d4abbb145f344339744805a","tarball":"https://registry.npmjs.org/ionic-zebra-label-printer/-/ionic-zebra-label-printer-1.0.0.tgz","fileCount":105,"unpackedSize":321954,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH8uVsZXlWFPpArlDcK8PeRz1Cv94Z+NdvpuRcpN1Fa0AiEAi9MbNPoHiktv/Pu+Npn7uarLNXpuhXhN2Q7iKto2qbA="}]},"_npmUser":{"name":"jgeraeds","email":"joeygeraeds@gmail.com"},"directories":{},"maintainers":[{"name":"jgeraeds","email":"joeygeraeds@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ionic-zebra-label-printer_1.0.0_1724835832565_0.23987998213971085"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-18T11:44:52.271Z","modified":"2024-08-28T09:03:52.937Z","0.0.15":"2021-02-17T10:30:43.212Z","0.0.5":"2021-02-17T10:30:43.212Z","0.0.6":"2021-02-17T10:30:43.212Z","0.0.9":"2021-02-17T10:30:43.212Z","0.0.18":"2021-02-17T10:30:43.212Z","0.0.10":"2021-02-17T10:30:43.212Z","0.0.11":"2021-02-17T10:30:43.212Z","0.0.12":"2021-02-17T10:30:43.212Z","0.0.13":"2021-02-17T10:30:43.212Z","0.0.14":"2021-02-17T10:30:43.212Z","0.0.16":"2021-02-17T10:30:43.212Z","0.0.17":"2021-02-17T10:30:43.212Z","0.0.19":"2021-02-17T10:30:43.212Z","0.0.2":"2021-02-17T10:30:43.212Z","0.0.20":"2021-02-17T10:30:43.212Z","0.0.21":"2021-02-17T10:30:43.212Z","0.0.22":"2021-02-17T10:30:43.212Z","0.0.23":"2021-02-17T10:30:43.212Z","0.0.3":"2021-02-17T10:30:43.212Z","0.0.4":"2021-02-17T10:30:43.212Z","0.0.7":"2021-02-17T10:30:43.212Z","0.0.8":"2021-02-17T10:30:43.212Z","0.0.24":"2021-02-18T11:44:52.544Z","0.0.25":"2024-08-28T08:46:40.613Z","1.0.0":"2024-08-28T09:03:52.765Z"},"bugs":{"url":"https://JoJo-Bear@bitbucket.org/JoJo-Bear/ionic-zebra-label-printer.git/issues"},"author":{"name":"Joey Geraeds"},"license":"MIT","homepage":"https://bitbucket.org/JoJo-Bear/ionic-zebra-label-printer#readme","keywords":["ionic","capacitor","plugin","native","android","ios","web"],"repository":{"type":"git","url":"git+https://JoJo-Bear@bitbucket.org/JoJo-Bear/ionic-zebra-label-printer.git"},"description":"print labels with an zebra label printer on the local network","maintainers":[{"name":"jgeraeds","email":"joeygeraeds@gmail.com"}],"readme":"# Plugin information\nThis plugin will enable your Ionic Cordova project to print using a Zebra printer. It's written to use TCP sockets for the native Android and iOS. In a browser version it will use a post request. If you are planning to use it in a web version served from HTTPS be warned, the Zebra printer only allows http calls. This causes Mixed Content issues if your not able to update the browser flag on the devices that will be used this will be a mayor issue. \n\n## Usage\nYou need to import the plugin in the file in which you want to call your print actions: \n```typescript\nimport { Plugins } from '@capacitor/core';\n\nimport 'ionic-zebra-label-printer';\nconst { ZebraLabelPrinter } = Plugins;\n\n```\n\nInitialise the printer object by passing the ip of the printer, port on which it is accessible (default for zebra is 9100) and code you want to print. \\\nUse the print object within the call to start printing.\n```typescript\nlet PrintObj = {\n\t\t\tip: \"xxx.xxx.xxx.xxx\",\n\t\t\tport: xxxx,\n\t\t\tzpl: \"your zpl formatted string\"\n\t\t};\n\nawait ZebraLabelPrinter.print(PrintObj)\n\t\t.then(\n\t\t\t(res)=>{\n\t\t\t},\n\t\t\t(err)=>{\n\t\t\t}\n\t\t).finally(()=>{\n\t\t});\n\n```\n\n\n## Android\n##### This version is tested on physical devises (zebra scanner to printer and android phone to printer)\nThis requires some manual steps to use this plugin on android \n\nWithin the main activity you need to import the plugin and add it within the init function\n```java\n    import nl.appcomm.zebraLabelPrinter.ZebraLabelPrinter; // <-- add this line\n\n   \t// Initializes the Bridge\n    this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{\n      // Additional plugins you've installed go here\n      // Ex: add(TotallyAwesomePlugin.class);\n      add(ZebraLabelPrinter.class); // <-- add this line\n    }});\n```\n\n## iOS\n\nThe iOS version is written with the use of the SwiftSocket pod. After building your project it could complain about;\n- the deployment target\n- the swift version\n\nBoth are easily solvable\n\n### Deployment target\nWhile having xcode open press on the Pods.xcodeproj > SwiftSocket (whithin the Targets section) > General (tab) > Deployment Info \nHere you select the target needed.\n\n### Swift version\nWhile having xcode open press on the Pods.xcodeproj > SwiftSocket (whithin the Targets section) > Build Settings (tab) > Swift Language Version\nHere you select the needed version\n\n## Web\n\nThe web version of this plugin uses an alternative method.\nIt uses the post request option provided by zebra.\nHowver in order to uses this option you will need to enable a browser flag.\nThis approach differs for each browser. In order to alter the flag you will need to search for \"allow mixed content\" ","readmeFilename":"README.md"}