Skip to content

0xflotus/valid-gtin

Folders and files

NameName
Last commit message
Last commit date
Feb 13, 2025
Oct 7, 2024
Oct 7, 2024
Jan 12, 2023
Feb 8, 2024
Oct 7, 2024
Oct 7, 2024
Feb 13, 2025
Oct 16, 2024
Oct 7, 2024
Mar 10, 2025
Mar 10, 2025
Oct 7, 2024

Repository files navigation

valid-gtin

npm version valid-gtin code size in bytes Quality Gate Status dependents Scc Count Badge

A zero cost lightweight validator function in native javascript for GTINs

Usage

const validate = require("valid-gtin")

if (validate(GTIN)) {
  console.log(":)")
}

CLI

valid_gtin <gtin>

Development

To run the tests please checkout this repository and run:

npm run test

Stargazers over time

Stargazers over time