Skip to content

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

Notifications You must be signed in to change notification settings

hampus-nilsson/gs1-checkdigit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published