{"id":41797381,"url":"https://github.com/schie/epc","last_synced_at":"2026-01-25T05:32:23.917Z","repository":{"id":331990616,"uuid":"1132319430","full_name":"schie/epc","owner":"schie","description":"parsing and creating EPCs","archived":false,"fork":false,"pushed_at":"2026-01-11T23:01:38.000Z","size":321,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-12T02:28:54.122Z","etag":null,"topics":["epc","rfid","typescript"],"latest_commit_sha":null,"homepage":"https://epc.schie.io/","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/schie.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-11T18:31:08.000Z","updated_at":"2026-01-11T23:09:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/schie/epc","commit_stats":null,"previous_names":["schie/epc"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/schie/epc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schie%2Fepc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schie%2Fepc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schie%2Fepc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schie%2Fepc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schie","download_url":"https://codeload.github.com/schie/epc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schie%2Fepc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28744429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T05:12:38.112Z","status":"ssl_error","status_checked_at":"2026-01-25T05:04:50.338Z","response_time":113,"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":["epc","rfid","typescript"],"created_at":"2026-01-25T05:32:23.388Z","updated_at":"2026-01-25T05:32:23.869Z","avatar_url":"https://github.com/schie.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @schie/epc\n\n[![npm version](https://badge.fury.io/js/@schie%2Fepc.svg)](https://www.npmjs.com/package/@schie/epc)\n[![CI](https://github.com/schie/epc/actions/workflows/ci.yml/badge.svg)](https://github.com/schie/epc/actions/workflows/ci.yml)\n[![CodeQL](https://github.com/schie/epc/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/schie/epc/actions/workflows/github-code-scanning/codeql)\n[![Super-Linter](https://github.com/schie/epc/actions/workflows/super-linter.yml/badge.svg)](https://github.com/schie/epc/actions/workflows/super-linter.yml)\n[![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?style=flat\u0026logo=typescript\u0026logoColor=white)](https://www.typescriptlang.org/)\n[![codecov](https://codecov.io/gh/schie/epc/branch/main/graph/badge.svg)](https://codecov.io/gh/schie/epc)\n[![code style: prettier][prettier-badge]][prettier]\n[![Commitizen friendly][commitizen-badge]][commitizen]\n\nA modern, type-safe TypeScript library for generating and parsing **EPC (Electronic Product Code)** identifiers used in UHF RFID tags.\n\n\u003e **⚠️ Early Development Notice**  \n\u003e This library is under active early development. Until v1.0.0 is released, consider all releases potentially breaking. The API may change significantly between versions as we refine the design based on user feedback and real-world usage patterns.\n\n## ✨ Features\n\n- 🧩 **EPC Generation** - Create EPCs from GS1 components\n- 🔍 **Parsing** - Decode EPC hex into structured data\n- 🛡️ **Type Safe** - Full TypeScript support with comprehensive types\n- 📦 **Zero Dependencies** - Lightweight and fast\n- 🧪 **Ready for Testing** - Built for easy unit test coverage\n\n## 🚀 Quick Start\n\n### Installation\n\n```bash\nnpm install @schie/epc\n```\n\n### Basic Usage\n\n```typescript\nimport { encodeSgtin96, parseEpc } from '@schie/epc';\n\nconst epc = encodeSgtin96({\n  companyPrefix: '0614141',\n  itemReference: '812345',\n  serial: 6789,\n  filter: 3,\n});\n\nconsole.log(epc.hex);\nconsole.log(epc.uri);\n\nconst parsed = parseEpc(epc.hex);\nconsole.log(parsed.scheme); // sgtin-96\n```\n\n## 📦 Package Information\n\n- **ES Modules**: Full ESM support with tree shaking\n- **CommonJS**: CJS builds included for compatibility\n- **TypeScript**: Complete type definitions included\n- **Node.js**: Requires Node.js 20+\n\n## 🧾 Supported Schemes\n\n- SGTIN-96\n- GID-96\n\n## 🤝 Contributing\n\nContributions are welcome! This project uses:\n\n- **TypeScript** for type safety\n- **Jest** for testing\n- **ESLint + Prettier** for code quality\n- **Commitizen** for conventional commits\n\n```bash\n# Install dependencies\nnpm install\n\n# Run tests\nnpm test\n\n# Build\nnpm run build\n\n# Lint\nnpm run lint\n```\n\n## 📄 License\n\nMIT License - see [LICENSE](LICENSE) file for details.\n\n## 🔗 Links\n\n- [NPM Package](https://www.npmjs.com/package/@schie/epc)\n- [Translation Steps](translation-steps.md)\n- [GitHub Repository](https://github.com/schie/epc)\n\n---\n\nMade with ❤️ by [@schie](https://github.com/schie)\n\n[prettier-badge]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier]: https://github.com/prettier/prettier\n[commitizen-badge]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg\n[commitizen]: http://commitizen.github.io/cz-cli/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschie%2Fepc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschie%2Fepc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschie%2Fepc/lists"}