{"id":37124026,"url":"https://github.com/hennedo/escpos","last_synced_at":"2026-01-14T14:19:11.433Z","repository":{"id":41965104,"uuid":"345199702","full_name":"hennedo/escpos","owner":"hennedo","description":"golang library for espos printers, supporting images, barcodes and qr codes","archived":false,"fork":false,"pushed_at":"2024-03-26T21:07:03.000Z","size":11,"stargazers_count":61,"open_issues_count":14,"forks_count":25,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-18T21:43:22.299Z","etag":null,"topics":["epson-printer","esc-pos","escpos","printer"],"latest_commit_sha":null,"homepage":"","language":"Go","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/hennedo.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-03-06T21:31:54.000Z","updated_at":"2024-05-26T02:57:02.000Z","dependencies_parsed_at":"2024-06-18T21:27:05.855Z","dependency_job_id":"ee0d6619-0eba-40c8-aee9-7aef20cbdcd1","html_url":"https://github.com/hennedo/escpos","commit_stats":{"total_commits":12,"total_committers":5,"mean_commits":2.4,"dds":0.5833333333333333,"last_synced_commit":"475ba147a030cd572bd9137e62a55185238738aa"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hennedo/escpos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hennedo%2Fescpos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hennedo%2Fescpos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hennedo%2Fescpos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hennedo%2Fescpos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hennedo","download_url":"https://codeload.github.com/hennedo/escpos/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hennedo%2Fescpos/sbom","scorecard":{"id":461354,"data":{"date":"2025-08-11","repo":{"name":"github.com/hennedo/escpos","commit":"475ba147a030cd572bd9137e62a55185238738aa"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Code-Review","score":2,"reason":"Found 3/12 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T11:12:40.048Z","repository_id":41965104,"created_at":"2025-08-19T11:12:40.048Z","updated_at":"2025-08-19T11:12:40.048Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28422640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["epson-printer","esc-pos","escpos","printer"],"created_at":"2026-01-14T14:19:10.851Z","updated_at":"2026-01-14T14:19:11.421Z","avatar_url":"https://github.com/hennedo.png","language":"Go","readme":"# About escpos [![GoDoc](https://godoc.org/github.com/hennedo/escpos?status.svg)](https://godoc.org/github.com/hennedo/escpos)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fhennedo%2Fescpos.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fhennedo%2Fescpos?ref=badge_shield)\n[![Go Reference](https://pkg.go.dev/badge/github.com/hennedo/escpos.svg)](https://pkg.go.dev/github.com/hennedo/escpos)\n\nThis is a [Golang](http://www.golang.org/project) package that provides\n[ESC-POS](https://en.wikipedia.org/wiki/ESC/P) library functions to help with\nsending control codes to a ESC-POS thermal printer.\n\nIt was largely inspired by [seer-robotics/escpos](https://github.com/seer-robotics/escpos) but is a complete rewrite.\n\nIt implements the protocol described in [this Command Manual](https://pos-x.com/download/escpos-programming-manual/)\n\n## Current featureset\n  * [x] Initializing the Printer\n  * [x] Toggling Underline mode\n  * [x] Toggling Bold text\n  * [x] Toggling upside-down character printing\n  * [x] Toggling Reverse mode\n  * [x] Linespace settings\n  * [x] Rotated characters\n  * [x] Align text\n  * [x] Default ASCII Charset, Western Europe and GBK encoding\n  * [x] Character size settings\n  * [x] UPC-A, UPC-E, EAN13, EAN8 Barcodes\n  * [x] QR Codes\n  * [x] Standard printing mode\n  * [x] Image Printing\n  * [x] Printing of predefined NV images\n\n## Installation ##\n\nInstall the package via the following:\n\n    go get -u github.com/hennedo/escpos\n\n## Usage ##\n\nThe escpos package can be used as the following:\n\n```go\npackage main\n\nimport (\n\t\"github.com/hennedo/escpos\"\n\t\"net\"\n)\n\nfunc main() {\n\tsocket, err := net.Dial(\"tcp\", \"192.168.8.40:9100\")\n\tif err != nil {\n\t\tprintln(err.Error())\n\t}\n\tdefer socket.Close()\n\n\tp := escpos.New(socket)\n\tp.SetConfig(escpos.ConfigEpsonTMT20II)\n\n\tp.Bold(true).Size(2, 2).Write(\"Hello World\")\n\tp.LineFeed()\n\tp.Bold(false).Underline(2).Justify(escpos.JustifyCenter).Write(\"this is underlined\")\n\tp.LineFeed()\n\tp.QRCode(\"https://github.com/hennedo/escpos\", true, 10, escpos.QRCodeErrorCorrectionLevelH)\n\n\n\n\t// You need to use either p.Print() or p.PrintAndCut() at the end to send the data to the printer.\n\tp.PrintAndCut()\n}\n```\n\n## Disable features ##\n\nAs the library sets all the styling parameters again for each call of Write, you might run into compatibility issues. Therefore it is possible to deactivate features.\nTo do so, use a predefined config (available for all printers listed under [Compatibility](#Compatibility)) right after the escpos.New call\n\n```go\np := escpos.New(socket)\np.SetConfig(escpos.ConfigEpsonTMT20II) // predefined config for the Epson TM-T20II\n\n// or for example\n\np.SetConfig(escpos.PrinterConfig(DisableUnderline: true))\n```\n\n## Compatibility ##\n\nThis is a (not complete) list of supported and tested devices.\n\n| Manufacturer | Model    | Styling   | Barcodes | QR Codes | Images |\n| ------------ | -------- | --------- | -------- | -------- | ------ |\n| Epson        | TM-T20II | ✅        | ✅        | ✅       | ✅     |\n| Epson        | TM-T88II | ☑️\u003cbr/\u003eUpsideDown Printing not supported  | ✅        |        | ✅     |\n\n## License\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fhennedo%2Fescpos.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fhennedo%2Fescpos?ref=badge_large)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhennedo%2Fescpos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhennedo%2Fescpos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhennedo%2Fescpos/lists"}