{"id":18843729,"url":"https://github.com/nielsleenheer/receiptprinterencoder","last_synced_at":"2025-04-08T14:09:28.403Z","repository":{"id":137246972,"uuid":"388471767","full_name":"NielsLeenheer/ReceiptPrinterEncoder","owner":"NielsLeenheer","description":"Create a set of commands that can be send to any receipt printer that supports ESC/POS, StarLine or StarPRNT","archived":false,"fork":false,"pushed_at":"2024-10-04T16:47:26.000Z","size":436,"stargazers_count":168,"open_issues_count":16,"forks_count":15,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-22T22:05:26.554Z","etag":null,"topics":["escpos","pos","printer","receipt","starline","starprnt"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NielsLeenheer.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-07-22T13:27:45.000Z","updated_at":"2024-10-17T14:28:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8fc95ec-aa84-49be-a588-b7b7b2bad649","html_url":"https://github.com/NielsLeenheer/ReceiptPrinterEncoder","commit_stats":{"total_commits":86,"total_committers":2,"mean_commits":43.0,"dds":"0.011627906976744207","last_synced_commit":"33546a9b2f3b1f8b3cf1b5a2e6c86f2f034c8937"},"previous_names":["nielsleenheer/receiptprinterencoder","nielsleenheer/thermalprinterencoder"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NielsLeenheer%2FReceiptPrinterEncoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NielsLeenheer%2FReceiptPrinterEncoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NielsLeenheer%2FReceiptPrinterEncoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NielsLeenheer%2FReceiptPrinterEncoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NielsLeenheer","download_url":"https://codeload.github.com/NielsLeenheer/ReceiptPrinterEncoder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247856541,"owners_count":21007620,"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":["escpos","pos","printer","receipt","starline","starprnt"],"created_at":"2024-11-08T02:58:39.574Z","updated_at":"2025-04-08T14:09:28.397Z","avatar_url":"https://github.com/NielsLeenheer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReceiptPrinterEncoder\n**Formally known as EscPosEncoder, StarPrntEncoder and ThermalPrinterEncoder**\n\n\u003cbr\u003e\n\nCreate a set of commands that can be send to any receipt printer that supports ESC/POS, StarLine or StarPRNT.\n\n- [About ReceiptPrinterEncoder](README.md)\n- [Usage and installation](documentation/usage.md)\n- [Configuration options](documentation/configuration.md)\n- [Handling text](documentation/text.md)\n- [Commands for creating receipts](documentation/commands.md)\n- [Printing receipts](documentation/printing.md)\n- [Changes from version 2 to version 3](documentation/changes.md)\n\n\u003cbr\u003e\n\n[![npm](https://img.shields.io/npm/v/@point-of-sale/receipt-printer-encoder)](https://www.npmjs.com/@point-of-sale/receipt-printer-encoder)\n![GitHub License](https://img.shields.io/github/license/NielsLeenheer/ReceiptPrinterEncoder)\n\n\u003e This library is part of [@point-of-sale](https://point-of-sale.dev), a collection of libraries for interfacing browsers and Node with Point of Sale devices such as receipt printers, barcode scanners and customer facing displays.\n\n\u003cbr\u003e\n\n## About ReceiptPrinterEncoder\n\nThis library allows you to run commands to add content, such as text, images and barcodes to a receipt and encode that content to ESC/POS, StarLine and StarPRNT commands. \n\n```js\nlet encoder = new ReceiptPrinterEncoder();\n\nlet result = encoder\n    .line('The is the first line')\n    .line('And this is the second')\n    .encode()\n\n/* To do: send result to the printer */\n```\n\nOnce you have the encoded commands you need a method to send those commands to the receipt printer - to actually print the receipt. And for that we have a list of sister libraries.\n\n\u003cbr\u003e\n\n-----\n\n\u003cbr\u003e\n\nThis library has been created by Niels Leenheer under the [MIT license](LICENSE). Feel free to use it in your products. The  development of this library is sponsored by Salonhub.\n\n\u003ca href=\"https://salonhub.nl\"\u003e\u003cimg src=\"https://salonhub.nl/assets/images/salonhub.svg\" width=140\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnielsleenheer%2Freceiptprinterencoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnielsleenheer%2Freceiptprinterencoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnielsleenheer%2Freceiptprinterencoder/lists"}