joushx/EAN13.js — pull request #2 by RG72 (2014-04-11 09:04:47+00:00)
Title: Node.js compatibility

Node.js compatibility
Add offset and width height to options

Now we can use ean13 at node.js server side node-canvas
`
EAN13=require('../public/js/ean13.js');
(new EAN13()).draw(nodeCanvasInstance, String(number), {
width:140,
height:70,
offsetX:180,
offsetY:3,
onSuccess:next
});
`

I use it for a printing on a server side, save to PDF, and send base64 preview to client browser.