Crates.io | gtinny |
lib.rs | gtinny |
version | 0.1.4 |
source | src |
created_at | 2024-01-10 12:30:44.482942 |
updated_at | 2024-02-12 12:52:31.865281 |
description | A GTIN Validator |
homepage | https://github.com/0xflotus/gtinny |
repository | https://github.com/0xflotus/gtinny |
max_upload_size | |
id | 1095196 |
size | 11,179 |
cargo install gtinny
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
> gtinny 97350053850012 # is a valid GTIN
> echo $?
0
> gtinny 12398748906 # is an invalid GTIN
Invalid GTIN: 12398748906
> echo $?
1