Barcode.js 363 B

12345678910111213141516171819
  1. "use strict";
  2. function _classCallCheck(instance, Constructor) {
  3. if (!(instance instanceof Constructor)) {
  4. throw new TypeError("Cannot call a class as a function");
  5. }
  6. }
  7. var Barcode = function Barcode(data, options) {
  8. _classCallCheck(this, Barcode);
  9. this.data = data;
  10. this.text = options.text || data;
  11. this.options = options;
  12. };
  13. export default Barcode