Looking for a small 1d barcode generator

Posted on
  • Sure there are many code generators easily to find in the internet, but none of them is small enough to fit for Espruino.

    Is anyone working with tiny javascript 1D barcode generators and like to share it?

  • I don't know anything offhand, but there seem to be a bunch of different barcode styles. If you stuck with just one type I think it would be pretty easy to do from scratch. For instance EAN-13 doesn't look too painful:

    https://en.wikipedia.org/wiki/Internatio­nal_Article_Number#Binary_encoding_of_da­ta_digits_into_EAN-13_barcode

    But I guess you might want UPC?

  • Thanks, was not searching on Wiki.

    Most companies use Code 128, wiki pointed to this nice barcode-svg repo which looks promising.

  • Looks very promising! If you get it working nicely it might be nice to bring it into Espruino as a module?

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Looking for a small 1d barcode generator

Posted by Avatar for MaBe @MaBe

Actions