Skip to content

Commit

Permalink
Added working node.js and browser support
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozo132 committed Dec 15, 2024
1 parent 4c10ce3 commit cbc40fa
Show file tree
Hide file tree
Showing 2 changed files with 267 additions and 254 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ There are still a lot of bugs and missing features, but it is a start.
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bwip-js/4.5.1/bwip-js-min.js"></script>
<script src="path_to/zpl2svg.js"></script>
```
#### Node.JS import not yet finished. It's missing bwip-js import and the main function export. This is on my TODO list.
#### Node.JS import:
```js
const zplToSvg = require('path_to/zpl2svg.js')
```

#### General usage:
#### Example:
```js
const zpl_content = `
^XA
Expand Down
Loading

0 comments on commit cbc40fa

Please sign in to comment.