1to1plus / dymo-js-sdk

Other
6 stars 0 forks source link

Dymo JS framework

Install

yarn add dymo-js-sdk
# or
npm install --save dymo-js-sdk

Usage

Can be seen in the src/demo/test-label.ts or in the sample ./src/demo/vue/hello-printer application

Initialize the framework and print the label. The code might look like this

// init the framework
const framework = await createFramework(undefined, true)

// build label template values
const record = labelSet.addRecord()
record.setText('Line1', 'This is a test label')
record.setText('Line2', 'This is another test')
record.setText('Line3', 'This is another test')
record.setText('ItemCode', '100a')

Demo vue application

in your terminal navigate to ./src/demo/vue/hello-printer

Developer notes

PLEASE NOTE

This project is not complete yet. I'm creating test and tweaking the code to do what it needs to do still.

My adoption of https://github.com/dymosoftware/dymo-connect-framework

Roadmap