{"id":23334057,"url":"https://github.com/simplesoft-pt/gs1parser","last_synced_at":"2025-04-09T18:50:54.919Z","repository":{"id":65215914,"uuid":"587758409","full_name":"simplesoft-pt/Gs1Parser","owner":"simplesoft-pt","description":"Lightweight GS1 parser for .NET applications","archived":false,"fork":false,"pushed_at":"2024-01-22T14:20:54.000Z","size":56,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-27T03:25:59.078Z","etag":null,"topics":["dotnet","dotnet-core","dotnet-framework","dotnet-standard","gs1"],"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/simplesoft-pt.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-01-11T14:17:04.000Z","updated_at":"2023-09-18T14:10:40.000Z","dependencies_parsed_at":"2024-12-21T00:37:40.765Z","dependency_job_id":"67f7a106-0e5f-4a9e-920e-b7c5a5b59dd1","html_url":"https://github.com/simplesoft-pt/Gs1Parser","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplesoft-pt%2FGs1Parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplesoft-pt%2FGs1Parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplesoft-pt%2FGs1Parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplesoft-pt%2FGs1Parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplesoft-pt","download_url":"https://codeload.github.com/simplesoft-pt/Gs1Parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248092260,"owners_count":21046446,"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":["dotnet","dotnet-core","dotnet-framework","dotnet-standard","gs1"],"created_at":"2024-12-21T00:37:33.692Z","updated_at":"2025-04-09T18:50:54.893Z","avatar_url":"https://github.com/simplesoft-pt.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gs1Parser\nLightweight parser for GS1 strings to be used in .NET applications.\n\n## Installation\nThe library is available via [NuGet](https://www.nuget.org/packages?q=SimpleSoft.Gs1Parser) packages:\n\n| NuGet | Description | Version |\n| --- | --- | --- |\n| [SimpleSoft.Gs1Parser](https://www.nuget.org/packages/simplesoft.gs1parser) | parser implementation for standard GS1 codes | [![NuGet](https://img.shields.io/nuget/vpre/simplesoft.gs1parser.svg)](https://www.nuget.org/packages/simplesoft.gs1parser) |\n\n### Package Manager\n```powershell\nInstall-Package SimpleSoft.Gs1Parser\n```\n\n### .NET CLI\n```powershell\ndotnet add package SimpleSoft.Gs1Parser\n```\n\n## Compatibility\nThis library is compatible with the following frameworks:\n\n* `SimpleSoft.Gs1Parser`\n  * .NET 5.0+;\n  * .NET Framework 4.5+;\n  * .NET Standard 1.0+;\n\n## Usage\nParsing of GS1 strings are made via `Gs1Parser` instances, that can be configured via `Gs1ParserOptions` class.\n\n```cs\nvar gs1Parser = new Gs1Parser(new Gs1ParserOptions\n{\n  Separator = ';'\n});\n\nvar gs1 = gs1Parser.Parse(\"10AB111;17260630\");\n\nAssert.Equal(\"AB111\", gs1[Gs1ApplicationIdentifierType.Batch].DataContent); // gs1[\"10\"].DataContent\nAssert.Equal(\"260630\", gs1[Gs1ApplicationIdentifierType.UseBy].DataContent); // gs1[\"17\"].DataContent\n```\n\nThe library also provides both a default options and parser that can be used instead of initializing your own instances (the parser implementation is thread safe, \nyou can use it as a singleton across your application):\n\n```cs\nGs1ParserOptions.Default.Separator = ';';\n\nvar gs1 = Gs1Parser.Default.Parse(\"10AB111;17260630\");\n\nAssert.Equal(\"AB111\", gs1[Gs1ApplicationIdentifierType.Batch].DataContent);\nAssert.Equal(\"260630\", gs1[Gs1ApplicationIdentifierType.UseBy].DataContent);\n```\n\nAs a note, if you initialize a `Gs1Parser` instance without passing an options, it will use the default one.\n\n```cs\n// both lines are equivalent\nnew Gs1Parser();\nnew Gs1Parser(Gs1ParserOptions.Default);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplesoft-pt%2Fgs1parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplesoft-pt%2Fgs1parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplesoft-pt%2Fgs1parser/lists"}