Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 348 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 348 Bytes

International Article Number

JavaScript library for validating and generating EAN barcode numbers.

Supports EAN-13 standard.

Install

npm install ean-check --save

Usage

const ean = require('ean-check');
console.log(ean.ean13.generate(123));
console.log(ean.ean13.check("1236"));
console.log(ean.ean13.check("1237"));