{"id":19100166,"url":"https://github.com/huysentruitw/barcoder","last_synced_at":"2025-04-12T14:58:13.888Z","repository":{"id":41207615,"uuid":"153914956","full_name":"huysentruitw/barcoder","owner":"huysentruitw","description":"Lightweight Barcode Encoding Library for .NET Framework, .NET Standard and .NET Core.","archived":false,"fork":false,"pushed_at":"2024-08-24T15:53:06.000Z","size":243,"stargazers_count":162,"open_issues_count":6,"forks_count":39,"subscribers_count":8,"default_branch":"develop","last_synced_at":"2025-04-12T14:58:09.763Z","etag":null,"topics":["2of5","aztec","aztec-code","barcode","barcode-generator","codabar","code128","code39","datamatrix","dotnet","dotnet-standard","ean13","ean8","gs1-datamatrix","hacktoberfest","kix","pdf417","qr-code","qrcode-generator","rm4sc"],"latest_commit_sha":null,"homepage":"","language":"C#","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/huysentruitw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"huysentruitw"}},"created_at":"2018-10-20T14:39:20.000Z","updated_at":"2025-03-14T17:01:10.000Z","dependencies_parsed_at":"2023-01-21T10:15:59.607Z","dependency_job_id":"6055cc9b-9357-4c30-81f8-2f4d6009ddcd","html_url":"https://github.com/huysentruitw/barcoder","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huysentruitw%2Fbarcoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huysentruitw%2Fbarcoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huysentruitw%2Fbarcoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huysentruitw%2Fbarcoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huysentruitw","download_url":"https://codeload.github.com/huysentruitw/barcoder/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248586250,"owners_count":21128997,"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":["2of5","aztec","aztec-code","barcode","barcode-generator","codabar","code128","code39","datamatrix","dotnet","dotnet-standard","ean13","ean8","gs1-datamatrix","hacktoberfest","kix","pdf417","qr-code","qrcode-generator","rm4sc"],"created_at":"2024-11-09T03:52:32.213Z","updated_at":"2025-04-12T14:58:13.860Z","avatar_url":"https://github.com/huysentruitw.png","language":"C#","funding_links":["https://github.com/sponsors/huysentruitw"],"categories":["hacktoberfest","dotnet"],"sub_categories":[],"readme":"# Barcoder - Barcode Encoding Library\n\n[![Build status](https://github.com/huysentruitw/barcoder/actions/workflows/build-test-publish.yml/badge.svg?branch=master)](https://github.com/huysentruitw/barcoder/actions/workflows/build-test-publish.yml?query=branch%3Amaster)\n\nLightweight Barcode Encoding Library for .NET Framework, .NET Standard and .NET Core. Additional packages are available for rendering the generated barcode to SVG or an image.\n\nPlease note that the image renderer (`Barcoder.Renderer.Image`) requires .NET6 or .NET8 because of the dependency on `SixLabors.ImageSharp.Drawing` and no longer works for .NET Framework.\nHowever, feel free to create your own renderer with another version or other image generation library.\n\nCode ported from the GO project https://github.com/boombuler/barcode by [Florian Sundermann](https://github.com/boombuler).\n\nSupported Barcode Types:\n\n* 2 of 5\n* Aztec Code\n* Codabar\n* Code 39\n* Code 93\n* Code 128\n* Code 128 GS1\n* Data Matrix (ECC 200)\n* Data Matrix GS1\n* EAN 8\n* EAN 13\n* KIX (used by PostNL)  \n* PDF 417\n* QR Code\n* RM4SC (Royal Mail 4 State Code)\n* UPC A\n* UPC E\n\n## NuGet package\n\nTo install the [main package](https://www.nuget.org/packages/Barcoder):\n\n    PM\u003e Install-Package Barcoder\n\nTo install the SVG renderer:\n\n    PM\u003e Install-Package Barcoder.Renderer.Svg\n\nTo install the image renderer[^1]:\n\n\tPM\u003e Install-Package Barcoder.Renderer.Image\n\t\n## Usage - render to SVG\n\n```csharp\nvar barcode = Code128Encoder.Encode(\"FOO/BAR/12345\");\nvar renderer = new SvgRenderer();\n\nusing (var stream = new MemoryStream())\nusing (var reader = new StreamReader(stream))\n{\n    renderer.Render(barcode, stream);\n    stream.Position = 0;\n\n    string svg = reader.ReadToEnd();\n    Console.WriteLine(svg);\n}\n```\n\n## Usage - render to PNG, JPEG, GIF or BMP\n\nExample for rendering to PNG:\n\n```csharp\nvar barcode = QrEncoder.Encode(\"Hello World!\");\nvar renderer = new ImageRenderer(new ImageRendererOptions { ImageFormat = ImageFormat.Png });\n\nusing (var stream = new FileStream(\"output.png\", FileMode.Create))\n{\n    renderer.Render(barcode, stream);\n}\n```\n\nSupported image formats can be found [here](/src/Barcoder.Renderer.Image/ImageFormat.cs)\n\n[^1]: The `Barcoder.Renderer.Image` package depends on the cross-platform `SixLabors.ImageSharp.Drawing` library. So when using this package, also respect their [LICENSE](https://github.com/SixLabors/ImageSharp.Drawing/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuysentruitw%2Fbarcoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuysentruitw%2Fbarcoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuysentruitw%2Fbarcoder/lists"}