A zero cost lightweight validator function in native javascript for GTINs
const validate = require("valid-gtin")
if (validate(GTIN)) {
console.log(":)")
}valid_gtin <gtin>
To run the tests please checkout this repository and run:
npm run test
| Name | Name | Last commit date | ||
|---|---|---|---|---|