hampus-nilsson / gs1-checkdigit

Javascript function used to generate SSCC, GSIN, GTIN-8, GTIN-12, GTIN-13 & GTIN-14 check digit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GS1 Javascript check digit algorithm

This Javascript function is used to generate check digits. The last digit of some barcodes is a computer check digit which makes sure the barcode is correctly composed. Unfortunately Javascript does not play nicely with long Integers. This algorithm expects a String as input and does not handle Integers as input.

Supported types (gs1):

SSCC, GTIN-8, GTIN-12, GTIN-13, GTIN-14, GSIN

Calculate a check digit manually

Read more about manually calculating a check digit here.

About

Javascript function used to generate SSCC, GSIN, GTIN-8, GTIN-12, GTIN-13 & GTIN-14 check digit.


Languages

Language:JavaScript 100.0%