{"id":16402888,"url":"https://github.com/don/posify","last_synced_at":"2025-10-29T00:03:25.476Z","repository":{"id":233637138,"uuid":"682137413","full_name":"don/posify","owner":"don","description":"A ESC/POS (snbc specific) driver in Rust","archived":false,"fork":false,"pushed_at":"2024-05-02T20:56:53.000Z","size":182,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T16:13:14.247Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"flynnguy/posify","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/don.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":"2023-08-23T14:18:10.000Z","updated_at":"2024-05-02T20:56:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c104a00-6af5-4747-a5d7-eae84ef1ef72","html_url":"https://github.com/don/posify","commit_stats":null,"previous_names":["don/posify"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/don/posify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/don%2Fposify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/don%2Fposify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/don%2Fposify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/don%2Fposify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/don","download_url":"https://codeload.github.com/don/posify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/don%2Fposify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263047658,"owners_count":23405280,"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":[],"created_at":"2024-10-11T05:47:32.362Z","updated_at":"2025-10-29T00:03:20.458Z","avatar_url":"https://github.com/don.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# escposify-rs\nA ESC/POS driver for Rust\n\n[Documentation](https://docs.rs/escposify)\n\nMost ESC/POS Printers will appear as a file. To print to the device, open a file to the location and pass this to the ```File::from``` function.\n\n\n# Examples\n\n## Rust\nSee: [simple.rs](examples/fromlp0.rs)\n\nNote: You can run examples with `cargo run --example fromlp0`.\n\n``` rust\nuse std::fs::OpenOptions;\nuse std::io;\n\nuse posify::printer::{BarcodeType, Font, Printer, SupportedPrinters, TextPosition};\n\nfn main() -\u003e io::Result\u003c()\u003e {\n    let device_file = OpenOptions::new()\n        .read(true)\n        .write(true)\n        .open(\"/dev/usb/lp0\").unwrap();\n\n    let mut printer = Printer::new(device_file, None, None, SupportedPrinters::P3);\n\n    printer\n        .chain_hwinit()?\n        .chain_align(\"ct\")?\n        .chain_underline_mode(Some(\"thick\"))?\n        .chain_text(\"Underlined Text\")?\n        .chain_underline_mode(Some(\"off\"))?\n        .chain_text(\"The quick brown fox jumps over the lazy dog\")?\n        .chain_feed(1)?\n        .chain_barcode(\"0123456789023\",\n            BarcodeType::Code128,\n            TextPosition::Below,\n            Font::FontA,\n            2,\n            0x40)?\n        .chain_feed(1)?\n        .chain_partial_cut()?\n        .flush()\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdon%2Fposify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdon%2Fposify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdon%2Fposify/lists"}