{"_id":"jquery-ean13","_rev":"4-d2a3d348fa29beccce65d4e49ab3a092","name":"jquery-ean13","description":"A JavaScript library for the generation of EAN13-barcodes","dist-tags":{"latest":"2.2.5"},"versions":{"2.2.4":{"name":"jquery-ean13","version":"2.2.4","description":"A JavaScript library for the generation of EAN13-barcodes","main":"dist/ean13.js","directories":{"example":"example"},"dependencies":{"grunt":"~0.4.2"},"devDependencies":{"node-qunit-phantomjs":"~1.4.0","coffeelint":"~1.15.7","coffee-script":"~1.10.0","uglify-js":"~2.7.0"},"scripts":{"test":"npm run lint && node-qunit-phantomjs tests/tests-jquery.html && node-qunit-phantomjs tests/tests-js.html","lint":"coffeelint src/ean13.coffee src/common.coffee src/jquery-ean13.coffee","build":"rm -rf dist && mkdir dist && cat src/common.coffee src/ean13.coffee > dist/ean13.coffee && cat src/common.coffee src/jquery-ean13.coffee > dist/jquery-ean13.coffee && coffee --compile --bare --no-header dist/ean13.coffee > dist/ean13.js && coffee --compile --bare --no-header dist/jquery-ean13.coffee > dist/jquery-ean13.js","minify":"uglifyjs dist/ean13.js -o dist/ean13.min.js && uglifyjs dist/jquery-ean13.js -o dist/jquery-ean13.min.js","prepublish":"npm run build && npm run minify"},"repository":{"type":"git","url":"git+https://github.com/joushx/jQuery.EAN13.git"},"keywords":["ean13","barcode","jquery","jquery-plugin","ecosystem:jquery"],"bugs":{"url":"https://github.com/joushx/jQuery.EAN13/issues","email":"support@johannes-mittendorfer.com"},"license":"MIT","author":{"name":"Johannes Mittendorfer","email":"kontakt@johannes-mittendorfer.com","url":"https://johannes-mittendorfer.com"},"gitHead":"017b73642133e3e4cf1bfc1a3718643adb6924be","homepage":"https://github.com/joushx/jQuery.EAN13#readme","_id":"jquery-ean13@2.2.4","_shasum":"5bfd8c4a274926d591b6a9a8c25e13419a060b8c","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"jmittendorfer","email":"support@johannes-mittendorfer.com"},"dist":{"shasum":"5bfd8c4a274926d591b6a9a8c25e13419a060b8c","tarball":"https://registry.npmjs.org/jquery-ean13/-/jquery-ean13-2.2.4.tgz","integrity":"sha512-02S50luxlypjvDKuZSELSWb1dbIsUJC6H+eRrbwwYiWynF0WGhowgxBwPPq8JiFyYqzlbInamF+uv5opRx8hZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCghH5WtvEkhuTjK2C+2iWj5Gd8rOzyxp2Hl3kkbYNEVgIgBRsBxlaJLVIseD8Cdp0VMKxqpjZRvqXGm7MlurSUVmg="}]},"maintainers":[{"name":"jmittendorfer","email":"support@johannes-mittendorfer.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jquery-ean13-2.2.4.tgz_1470737172194_0.4467603557277471"}},"2.2.5":{"name":"jquery-ean13","version":"2.2.5","description":"A JavaScript library for the generation of EAN13-barcodes","repository":{"type":"git","url":"git+https://github.com/joushx/jQuery.EAN13.git"},"keywords":["ean13","barcode","jquery","jquery-plugin","ecosystem:jquery"],"bugs":{"url":"https://github.com/joushx/jQuery.EAN13/issues","email":"support@johannes-mittendorfer.com"},"license":"MIT","author":{"name":"Johannes Mittendorfer","email":"kontakt@johannes-mittendorfer.com","url":"https://johannes-mittendorfer.com"},"main":"dist/ean13.js","directories":{"example":"example"},"scripts":{"test":"npm run lint && node-qunit-phantomjs tests/tests-jquery.html && node-qunit-phantomjs tests/tests-js.html","lint":"coffeelint src/ean13.coffee src/common.coffee src/jquery-ean13.coffee","build":"rm -rf dist && mkdir dist && cat src/common.coffee src/ean13.coffee > dist/ean13.coffee && cat src/common.coffee src/jquery-ean13.coffee > dist/jquery-ean13.coffee && coffee --compile --bare --no-header dist/ean13.coffee > dist/ean13.js && coffee --compile --bare --no-header dist/jquery-ean13.coffee > dist/jquery-ean13.js","minify":"uglifyjs dist/ean13.js -o dist/ean13.min.js && uglifyjs dist/jquery-ean13.js -o dist/jquery-ean13.min.js","prepublish":"npm run build && npm run minify"},"devDependencies":{"node-qunit-phantomjs":"~1.4.0","coffeelint":"~1.15.7","coffee-script":"~1.10.0","uglify-js":"~2.7.0"},"gitHead":"fb6976ef38f6275207b4464780238ca665306412","homepage":"https://github.com/joushx/jQuery.EAN13#readme","_id":"jquery-ean13@2.2.5","_shasum":"277d5d34062540ea234ec6df108e6e11e6f31886","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"jmittendorfer","email":"support@johannes-mittendorfer.com"},"dist":{"shasum":"277d5d34062540ea234ec6df108e6e11e6f31886","tarball":"https://registry.npmjs.org/jquery-ean13/-/jquery-ean13-2.2.5.tgz","integrity":"sha512-PC/Y2fMkg0wmQUUv3rOCaZO25F5I4rcv0PFUYsh8mpcbloGTKlhsIBU8rcxuSySY9t8dEz+I9NJgbvFqcNNq+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHKlYo0cFAcBZgw2UvaYXklqrVlsMDj0bYdqy4C9rp/CAiBbrb7d10uc+hiZFCVw1+oeuXHlWazACIH65yV8Y3D9HQ=="}]},"maintainers":[{"name":"jmittendorfer","email":"support@johannes-mittendorfer.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jquery-ean13-2.2.5.tgz_1470738705924_0.6346494478639215"}}},"readme":"[![Build Status](https://travis-ci.org/joushx/jQuery.EAN13.png?branch=master)](https://travis-ci.org/joushx/jQuery.EAN13) <a href=\"https://flattr.com/thing/2941746/joushxjQuery-EAN13-on-GitHub\" target=\"_blank\"><img src=\"http://api.flattr.com/button/flattr-badge-large.png\" alt=\"Flattr this\" title=\"Flattr this\" border=\"0\"></a>\n\n#jQuery.EAN13.js\njQuery.EAN13.js is a lightweight library available as plain JavaScript and as jQuery plugin for the generation of EAN-13 barcodes.\n\n<img src=\"https://raw.github.com/joushx/jQuery.EAN13/master/barcode.png\"/>\n\n##Usage##\n\n###Include Plugin###\nInsert the following code into the `head` section of you page:\n\n####JavaScript####\n\n```html\n<script type=\"text/javascript\" src=\"jquery-ean13.min.js\"></script>\n```\n\n\n####jQuery####\n\n```html\n<script type=\"text/javascript\" src=\"ean13.min.js\"></script>\n```\n\nMake sure to include this **after** the jQuery-library.\n\n###Insert Canvas###\nAt the place where you want to insert the barcode insert this code:\n\n```html\n<canvas id=\"ean\" width=\"200\" height=\"100\">\n\tYour browser does not support canvas-elements.\n</canvas>\n```\n\nYou may change the dimensions of the element. The barcode will automatically be resized.\n\n###Simple barcode###\nFor printing the barcode without any further options use the following code.\nIf you don't provide a check digit (just a 12 digit code) it will be generated for you on the fly.\n\n####JavaScript####\n\n```javascript\nvar element = document.getElementById(\"ean\");\nnew EAN13(element, \"9002236311036\");\n```\n\n####jQuery####\n```javascript\n$(\"#ean\").EAN13(\"9002236311036\");\n```\n\n##Options##\n\nThe library provides some options and callback functions. To use them simply provide a option object as the second argument.\n\n###Example###\n\n####JavaScript####\n\n```javascript\nvar options = {\n\tnumber: false,\n\tprefix: false,\n\tonSuccess: function(){\n\t  alert(\"Heeeey!\");\n\t}\n}\n\nnew EAN13(document.getElementById(\"ean\"), \"9002236311036\", options);\n```\n\n####jQuery####\n\n```javascript\n$(\"#ean\").EAN13(\"9002236311036\", {\n\tnumber: false,\n\tprefix: false\n});\n```\n\n###List of options###\n\nidentifier | type    | default value | description\n-----------|---------|---------------|-------------\nnumber\t\t | boolean | true          | If `true` the number is printed underneath the barcode to be readable for humans.\nprefix\t\t | boolean | true          | If `true` the country prefix (to be precise the first digit of it) is printed at the left of the barcode.\ncolor\t\t\t | string  | #000          | The color of the barcode. Accepts any CSS colors e.g. `#ff0000`, `green`, `rgb(0,0,0)` or `rgb(0,0,0,0.5)`.\nbackground | string  | null          | The background color of the barcode. Accepts any CSS colors e.g. `#ff0000`, `green`, `rgb(0,0,0)` or `rgb(0,0,0,0.5)`. Default is null = transparent\ndebug\t\t\t | boolean | false\t\t\t\t | If `true` a pattern is drawn on the barcode to help identify the lines.\npadding    | int     | 0             | Adds a padding arround the code (in pixel)\n\n###List of callbacks###\n\nidentifier         | description\n-------------------|---------\nonValid()\t\t       | Fired if the checksum of the provided code is correct. Not used if a 12 digit code is provided.\nonInvalid()        | Fired is the checksum is not correct. Not used if a 12 digit code is provided.\nonSuccess(number)  | Fired at the end of the painting process and if no errors occurred. Gives the number (including generated or provided checksum) as parameter.\nonError()          | Fired if the were any errors while painting. (For instance the canvas element is not present)\n","maintainers":[{"name":"jmittendorfer","email":"support@johannes-mittendorfer.com"}],"time":{"modified":"2022-06-19T05:02:08.289Z","created":"2016-08-09T10:06:13.995Z","2.2.4":"2016-08-09T10:06:13.995Z","2.2.5":"2016-08-09T10:31:47.949Z"},"homepage":"https://github.com/joushx/jQuery.EAN13#readme","keywords":["ean13","barcode","jquery","jquery-plugin","ecosystem:jquery"],"repository":{"type":"git","url":"git+https://github.com/joushx/jQuery.EAN13.git"},"author":{"name":"Johannes Mittendorfer","email":"kontakt@johannes-mittendorfer.com","url":"https://johannes-mittendorfer.com"},"bugs":{"url":"https://github.com/joushx/jQuery.EAN13/issues","email":"support@johannes-mittendorfer.com"},"license":"MIT","readmeFilename":"README.md"}