gtinny

Crates.iogtinny
lib.rsgtinny
version0.1.4
sourcesrc
created_at2024-01-10 12:30:44.482942
updated_at2024-02-12 12:52:31.865281
descriptionA GTIN Validator
homepagehttps://github.com/0xflotus/gtinny
repositoryhttps://github.com/0xflotus/gtinny
max_upload_size
id1095196
size11,179
0xflotus (0xflotus)

documentation

README

gtinny - A GTIN Validator

Install

cargo install gtinny

Usage

A GTIN Validator

Usage: gtinny [OPTIONS] [gtin]

Arguments:
  [gtin]  Validates the GTIN

Options:
  -v, --verbose  Print if it is a valid GTIN
  -q, --quiet    Suppress all logging. Overrides verbose behaviour.
  -h, --help     Print help
  -V, --version  Print version

Examples

> gtinny 97350053850012 # is a valid GTIN
> echo $?
0

> gtinny 12398748906 # is an invalid GTIN
Invalid GTIN: 12398748906
> echo $?
1
Commit count: 0

cargo fmt