hakanensari / ean

A minimal EAN and ISBN implementation in JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EAN

[![Build Status] status] travis

A minimal EAN and ISBN implementation.

Installation

npm install ean

Usage

ean = require('ean');

var bad = '9780262011531';
ean.isValid(bad); // false
var digits = bad.split('').slice(0, 12);
ean.checksum(digits); // 2

About

A minimal EAN and ISBN implementation in JavaScript

License:MIT License


Languages

Language:CoffeeScript 100.0%