{"id":13998621,"url":"https://github.com/grandchef/escpos-buffer","last_synced_at":"2026-03-11T13:18:48.663Z","repository":{"id":42963824,"uuid":"225382798","full_name":"grandchef/escpos-buffer","owner":"grandchef","description":"Library to generate buffer for thermal printers.","archived":false,"fork":false,"pushed_at":"2023-10-24T03:28:32.000Z","size":612,"stargazers_count":58,"open_issues_count":9,"forks_count":19,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-13T20:37:15.529Z","etag":null,"topics":["escpos","nodejs","printer"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/grandchef.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":"2019-12-02T13:34:57.000Z","updated_at":"2026-01-10T06:31:26.000Z","dependencies_parsed_at":"2024-06-18T21:34:05.066Z","dependency_job_id":"f54c8a71-76bf-4acc-9f5a-ef6218eadff6","html_url":"https://github.com/grandchef/escpos-buffer","commit_stats":{"total_commits":129,"total_committers":9,"mean_commits":"14.333333333333334","dds":0.5891472868217054,"last_synced_commit":"e099b9f9502b7f162a598e75e82c4c067890abd2"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/grandchef/escpos-buffer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grandchef%2Fescpos-buffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grandchef%2Fescpos-buffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grandchef%2Fescpos-buffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grandchef%2Fescpos-buffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grandchef","download_url":"https://codeload.github.com/grandchef/escpos-buffer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grandchef%2Fescpos-buffer/sbom","scorecard":{"id":443472,"data":{"date":"2025-08-11","repo":{"name":"github.com/grandchef/escpos-buffer","commit":"e099b9f9502b7f162a598e75e82c4c067890abd2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Code-Review","score":5,"reason":"Found 6/11 approved changesets -- score normalized to 5","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/grandchef/escpos-buffer/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/grandchef/escpos-buffer/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/grandchef/escpos-buffer/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/grandchef/escpos-buffer/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/grandchef/escpos-buffer/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/grandchef/escpos-buffer/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/grandchef/escpos-buffer/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/grandchef/escpos-buffer/main.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/grandchef/escpos-buffer/main.yml/main?enable=pin","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"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":"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 'main'","Warn: branch protection not enabled for branch 'v1.x.x'"],"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 25 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":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-54xq-cgqr-rpm3","Warn: Project is vulnerable to: GHSA-pq67-2wwv-3xjx","Warn: Project is vulnerable to: GHSA-8cj5-5rvv-wf4v"],"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-19T06:07:51.070Z","repository_id":42963824,"created_at":"2025-08-19T06:07:51.071Z","updated_at":"2025-08-19T06:07:51.071Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30382669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T12:49:11.341Z","status":"ssl_error","status_checked_at":"2026-03-11T12:46:41.342Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["escpos","nodejs","printer"],"created_at":"2024-08-09T19:01:51.423Z","updated_at":"2026-03-11T13:18:48.643Z","avatar_url":"https://github.com/grandchef.png","language":"TypeScript","readme":"[![Latest Version][version-badge]][npm-link]\n[![Build Status][github-badge]][github-ci]\n[![TypeScript version][ts-badge]][typescript-37]\n[![Node.js version][nodejs-badge]][nodejs]\n[![MIT][license-badge]][license]\n\n# ESC/POS Printer Library\n\nLibrary to generate buffer for thermal printers.\n\n## Install\n\nRun command bellow on your project folder\n\n```sh\nyarn add escpos-buffer\n```\n\nor\n\n```sh\nnpm install escpos-buffer\n```\n\n## Setup\n\n### Node\n\n```js\nconst { Printer, InMemory } = require('escpos-buffer');\n\nconst connection = new InMemory();\nconst printer = await Printer.CONNECT('MP-4200 TH', connection);\n```\n\n### Browser\n\nUse the WebUSB protocol [in Chrome](https://caniuse.com/webusb) to connect directly to the printer.\n\n```js\nimport { Printer, Model, WebUSB } from 'escpos-buffer';\n\nconst device = await navigator.usb.requestDevice({\n  filters: [\n    {\n      vendorId: VENDOR_ID,\n    },\n  ],\n});\nconst connection = new WebUSB(device);\nconst printer = await Printer.CONNECT('TM-T20', connection);\n```\n\n## Usage\n\n```js\n// Following setup above...\nawait printer.setColumns(56)\nawait printer.write('Simple Text *** ')\nawait printer.writeln('Bold Text -\u003e complete line text.[]123456', Style.Bold)\nawait printer.writeln('Double height', Style.DoubleHeight | Style.Bold, Align.Center)\nawait printer.writeln('Áçênts R$ 5,00', Style.DoubleWidth | Style.DoubleWidth, Align.Center)\nawait printer.withStyle({\n  width: 4,\n  height: 6,\n  bold: true,\n  italic: true,\n  underline: true,\n  align: Align.Center,\n  }, async () =\u003e {\n    await printer.writeln('You can apply multiple styles at once using withStyle()')\n    await printer.writeln('Font sizes 1-8 are available')\n})\nawait printer.writeln('Default style is restored afterwards')\nawait printer.feed(6)\nawait printer.buzzer()\nawait printer.cutter()\nawait printer.drawer(Drawer.First)\n\n// For buffered connection (output to stdout)\nprocess.stdout.write(connection.buffer())\n\n// to print, run command bellow on terminal\n\n// For Unix\n//\u003e node examples/basic.js | lp -d MyCupsPrinterName\n\n// For Windows\n//\u003e node examples\\basic.js \u003e output.bin\n//\u003e print /d:\\\\%COMPUTERNAME%\\PRINTER_NAME output.bin\n```\n\n## Available scripts\n\n- `clean` - remove coverage data, Jest cache and transpiled files,\n- `build` - transpile TypeScript to ES6,\n- `build:watch` - interactive watch mode to automatically transpile source files,\n- `lint` - lint source files and tests,\n- `style:fix` - fix prettier style problems,\n- `style:check` - check for prettier style,\n- `test` - run tests,\n- `test:watch` - interactive watch mode to automatically re-run tests\n- `test:debug` - run tests debugging\n\n## License\n\nLicensed under the MIT. See the [LICENSE](https://github.com/grandchef/escpos-buffer/blob/master/LICENSE) file for details.\n\n[ts-badge]: https://img.shields.io/badge/TypeScript-3.7-blue.svg\n[typescript-37]: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html\n[nodejs-badge]: https://img.shields.io/badge/Node.js-\u003e=%2010-blue.svg\n[nodejs]: https://nodejs.org/dist/latest-v10.x/docs/api/\n[github-badge]: https://github.com/grandchef/escpos-buffer/actions/workflows/main.yml/badge.svg\n[github-ci]: https://github.com/grandchef/escpos-buffer/actions\n[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg\n[license]: https://github.com/grandchef/escpos-buffer/blob/master/LICENSE\n[version-badge]: https://img.shields.io/npm/v/escpos-buffer?label=escpos-buffer\n[npm-link]: https://www.npmjs.com/package/escpos-buffer\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrandchef%2Fescpos-buffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrandchef%2Fescpos-buffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrandchef%2Fescpos-buffer/lists"}