dominiklessel / node-barcoder Goto Github PK
View Code? Open in Web Editor NEWBarcoder is a simple EAN/GTIN validator, built for node.js and the browser.
Barcoder is a simple EAN/GTIN validator, built for node.js and the browser.
Code 7897254172149 is being validated with 10 (78972541721) and with 13 digits. I think there's no or ean-9, ean-10 or ean-11 (this can be validated in regex), correct me if I'm wrong.
It would be helpful to have a function that return the type of a barcode.
The example given is wrong? Can EAN's have letters?
0016T20054453
I tried a few online validators, they say it's wrong.
http://formvalidation.io/validators/ean/
https://www.getnewidentity.com/validate-ean.php
04971850934912 does not pass validation. but its a valid gtin14 (having a leading zero, the original getin is a gtin13 4971850934912) But you can convert gtin13 to gtin14 by prepending a zero
Please, update tags to 2.0.0 so I can update Barcoder via bower (or add bower :) )
Thank you very much! awesome library!
There is a line in code:
if ( !this.options.enableZeroPadding ) {
this.options.enableZeroPadding = true;
}
that prevents setting options.enableZeroPadding to false
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.