{"id":13880339,"url":"https://github.com/ankane/barkick","last_synced_at":"2025-11-17T14:05:33.658Z","repository":{"id":10717584,"uuid":"12967112","full_name":"ankane/barkick","owner":"ankane","description":"Barcodes made easy","archived":false,"fork":false,"pushed_at":"2025-06-09T17:38:31.000Z","size":42,"stargazers_count":144,"open_issues_count":0,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-30T15:36:27.991Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/ankane.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2013-09-20T06:32:22.000Z","updated_at":"2025-08-28T17:39:17.000Z","dependencies_parsed_at":"2024-06-10T05:25:43.631Z","dependency_job_id":"ef793245-34d1-460c-8aa4-4aeccc0c1a98","html_url":"https://github.com/ankane/barkick","commit_stats":{"total_commits":44,"total_committers":3,"mean_commits":"14.666666666666666","dds":"0.38636363636363635","last_synced_commit":"460e031b396b8220109d4ff8b76f7a88337f7574"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ankane/barkick","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fbarkick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fbarkick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fbarkick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fbarkick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ankane","download_url":"https://codeload.github.com/ankane/barkick/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fbarkick/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284145115,"owners_count":26954876,"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","status":"online","status_checked_at":"2025-11-13T02:00:06.582Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-08-06T08:02:57.347Z","updated_at":"2025-11-17T14:05:33.640Z","avatar_url":"https://github.com/ankane.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Barkick\n\nBarcodes made easy\n\nWorks with:\n\n- [UPC](https://en.wikipedia.org/wiki/Universal_Product_Code) (UPC-A and UPC-E)\n- [EAN](https://en.wikipedia.org/wiki/International_Article_Number_%28EAN%29) (EAN-13 and EAN-8)\n- [GTIN](https://en.wikipedia.org/wiki/Global_Trade_Item_Number)\n- [ISBN](https://en.wikipedia.org/wiki/International_Standard_Book_Number)\n\nFor PLU codes, check out the [plu gem](https://github.com/ankane/plu)\n\n[![Build Status](https://github.com/ankane/barkick/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/barkick/actions)\n\n## Installation\n\nAdd this line to your Gemfile:\n\n```ruby\ngem \"barkick\"\n```\n\n## How To Use\n\n```ruby\ngtin = Barkick::GTIN.new(\"016000275263\")\ngtin.valid?       # true\ngtin.gtin14       # \"00016000275263\"\ngtin.ean13        # \"0016000275263\"\ngtin.upc          # \"016000275263\"\ngtin.prefix       # \"001\"\ngtin.prefix_name  # \"GS1 US\"\ngtin.country_code # \"US\"\n```\n\nVariable items\n\n```ruby\ngtin = Barkick::GTIN.new(\"299265108631\")\ngtin.variable?   # true\ngtin.restricted? # true\ngtin.price       # 8.63\ngtin.base_gtin14 # \"00299265000003\"\n```\n\nUPC-E\n\n```ruby\ngtin = Barkick::GTIN.new(\"03744806\", type: :upc_e)\ngtin.base_gtin14 # \"00037000004486\"\n```\n\nEAN-8\n\n```ruby\ngtin = Barkick::GTIN.new(\"01234565\", type: :ean8)\ngtin.base_gtin14 # \"00000001234565\"\n```\n\nCalculate check digit\n\n```ruby\nBarkick::GTIN.check_digit(\"01600027526\") # \"3\"\n```\n\n\u003e For UPC-E, convert to UPC-A before passing to this method\n\n## Resources\n\n- [GS1 General Specifications](https://www.gs1.org/docs/barcodes/GS1_General_Specifications.pdf)\n\n## History\n\nView the [changelog](https://github.com/ankane/barkick/blob/master/CHANGELOG.md)\n\n## Contributing\n\nEveryone is encouraged to help improve this project. Here are a few ways you can help:\n\n- [Report bugs](https://github.com/ankane/barkick/issues)\n- Fix bugs and [submit pull requests](https://github.com/ankane/barkick/pulls)\n- Write, clarify, or fix documentation\n- Suggest or add new features\n\nTo get started with development:\n\n```sh\ngit clone https://github.com/ankane/barkick.git\ncd barkick\nbundle install\nbundle exec rake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankane%2Fbarkick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankane%2Fbarkick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankane%2Fbarkick/lists"}