JavaScript library for validating and generating EAN barcode numbers.
Supports EAN-13 standard.
npm install ean-check --save
let ean = require('ean-check');
console.log(ean.ean13.generate(123));
console.log(ean.ean13.check("1236"));
console.log(ean.ean13.check("1237"));