WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

0xflotus/valid-gtin

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

About

A lightweight validator function for GTINs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 7